{"action":"opened","issue":{"url":"https://api.github.com/repos/pmem/issues/issues/339","repository_url":"https://api.github.com/repos/pmem/issues","labels_url":"https://api.github.com/repos/pmem/issues/issues/339/labels{/name}","comments_url":"https://api.github.com/repos/pmem/issues/issues/339/comments","events_url":"https://api.github.com/repos/pmem/issues/issues/339/events","html_url":"https://github.com/pmem/issues/issues/339","id":190069575,"number":339,"title":"pmempool check: repairing without advanced flag set is more likely when more pool hdr fields are spoiled","user":{"login":"kkajrewicz","id":15832104,"avatar_url":"https://avatars.githubusercontent.com/u/15832104?v=3","gravatar_id":"","url":"https://api.github.com/users/kkajrewicz","html_url":"https://github.com/kkajrewicz","followers_url":"https://api.github.com/users/kkajrewicz/followers","following_url":"https://api.github.com/users/kkajrewicz/following{/other_user}","gists_url":"https://api.github.com/users/kkajrewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/kkajrewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kkajrewicz/subscriptions","organizations_url":"https://api.github.com/users/kkajrewicz/orgs","repos_url":"https://api.github.com/users/kkajrewicz/repos","events_url":"https://api.github.com/users/kkajrewicz/events{/privacy}","received_events_url":"https://api.github.com/users/kkajrewicz/received_events","type":"User","site_admin":false},"labels":[{"id":127171881,"url":"https://api.github.com/repos/pmem/issues/labels/Exposure:%20Medium","name":"Exposure: Medium","color":"fbca04","default":false},{"id":474643325,"url":"https://api.github.com/repos/pmem/issues/labels/OS:%20Linux","name":"OS: Linux","color":"d4c5f9","default":false},{"id":127172854,"url":"https://api.github.com/repos/pmem/issues/labels/Priority:%203%20medium","name":"Priority: 3 medium","color":"207de5","default":false},{"id":121756457,"url":"https://api.github.com/repos/pmem/issues/labels/Type:%20Bug","name":"Type: Bug","color":"fc2929","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-11-17T14:56:20Z","updated_at":"2016-11-17T14:56:20Z","closed_at":null,"body":"```\r\n#cat pool.set\r\nPMEMPOOLSET\r\n20M /tmp/part0\r\n20M /tmp/part1\r\n```\r\nSteps to reproduce:\r\n1. Create log pool based on pool set file\r\n2. Spoil pool header's field that requires generation of new checksum e.g. pool_hdr.crtime or checksum\r\n`# ./pmemspoil /tmp/part0 pool_hdr.crtime=123456789`\r\n3. Try to repair the pool without advanced flag:\r\n```\r\n#pmempool check -vr pool.set\r\nreplica 0 part 0: checking pool header\r\nreplica 0 part 0: incorrect pool header checksum\r\ncan not repair pool_hdr.uuid\r\npool.set: cannot repair\r\n```\r\n4. Spoil another pool header's field - uuid:\r\n`# ./pmemspoil /tmp/part0 pool_hdr.uuid=32324`\r\n\r\n5. Try to repair the pool without advanced flag:\r\n```\r\n# pmempool check -vry pool.set\r\nreplica 0 part 0: checking pool header\r\nreplica 0 part 0: incorrect pool header checksum\r\nreplica 0 part 0: invalid pool_hdr.uuid\r\nreplica 0 part 0: setting pool_hdr.uuid to 14011b32-ce43-485c-ac35-86133d0abcf3\r\nsetting pool_hdr.checksum to 0x3f5f93af1dba1569\r\nreplica 0 part 1: checking pool header\r\nreplica 0 part 1: pool header checksum correct\r\nchecking pmemlog header\r\npmemlog header correct\r\npool.set: repaired\r\n```\r\nFound on 1.1-1060-g26342de"}}
{"actor":{"display_login":"kkajrewicz"}}