{"action":"created","issue":{"url":"https://api.github.com/repos/ceph/ceph/issues/6918","labels_url":"https://api.github.com/repos/ceph/ceph/issues/6918/labels{/name}","comments_url":"https://api.github.com/repos/ceph/ceph/issues/6918/comments","events_url":"https://api.github.com/repos/ceph/ceph/issues/6918/events","html_url":"https://github.com/ceph/ceph/pull/6918","id":122012029,"number":6918,"title":"ReplicatedPG: remove cached ObjectContext on write failure","user":{"login":"asheplyakov","id":7986850,"avatar_url":"https://avatars.githubusercontent.com/u/7986850?v=3","gravatar_id":"","url":"https://api.github.com/users/asheplyakov","html_url":"https://github.com/asheplyakov","followers_url":"https://api.github.com/users/asheplyakov/followers","following_url":"https://api.github.com/users/asheplyakov/following{/other_user}","gists_url":"https://api.github.com/users/asheplyakov/gists{/gist_id}","starred_url":"https://api.github.com/users/asheplyakov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/asheplyakov/subscriptions","organizations_url":"https://api.github.com/users/asheplyakov/orgs","repos_url":"https://api.github.com/users/asheplyakov/repos","events_url":"https://api.github.com/users/asheplyakov/events{/privacy}","received_events_url":"https://api.github.com/users/asheplyakov/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceph/ceph/labels/bug%20fix","name":"bug fix","color":"e11d21"},{"url":"https://api.github.com/repos/ceph/ceph/labels/core","name":"core","color":"0052cc"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-12-14T10:12:05Z","updated_at":"2015-12-14T10:56:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/ceph/ceph/pulls/6918","html_url":"https://github.com/ceph/ceph/pull/6918","diff_url":"https://github.com/ceph/ceph/pull/6918.diff","patch_url":"https://github.com/ceph/ceph/pull/6918.patch"},"body":"ReplicatedPG::finish_ctx() updates in memory object metadata, in particular\r\nits size (ctx->obc->obs). However if the pool is full the transaction is\r\ndropped without reverting the in memory object metadata. The next operation\r\non the same object (say, copy-get) might pick the cached ObjectContext with\r\na wrong size (and possibly other metadata) and hit some assert (or even\r\nsilently corrupt the data).\r\nTherefore remove the cached ObjectContext if pool is full.\r\n\r\nFixes: #12449\r\n\r\nSigned-off-by: Alexey Sheplyakov <asheplyakov@mirantis.com>"},"comment":{"url":"https://api.github.com/repos/ceph/ceph/issues/comments/164408543","html_url":"https://github.com/ceph/ceph/pull/6918#issuecomment-164408543","issue_url":"https://api.github.com/repos/ceph/ceph/issues/6918","id":164408543,"user":{"login":"loic-bot","id":9638672,"avatar_url":"https://avatars.githubusercontent.com/u/9638672?v=3","gravatar_id":"","url":"https://api.github.com/users/loic-bot","html_url":"https://github.com/loic-bot","followers_url":"https://api.github.com/users/loic-bot/followers","following_url":"https://api.github.com/users/loic-bot/following{/other_user}","gists_url":"https://api.github.com/users/loic-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/loic-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loic-bot/subscriptions","organizations_url":"https://api.github.com/users/loic-bot/orgs","repos_url":"https://api.github.com/users/loic-bot/repos","events_url":"https://api.github.com/users/loic-bot/events{/privacy}","received_events_url":"https://api.github.com/users/loic-bot/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T10:56:21Z","updated_at":"2015-12-14T10:56:21Z","body":"SUCCESS: http://jenkins.ceph.dachary.org/job/ceph/10142/\n* SUCCESS http://jenkins.ceph.dachary.org/job/ceph/LABELS=centos-7&&x86_64/10142/\n"}}