{"action":"closed","number":1547,"pull_request":{"url":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547","id":63911216,"html_url":"https://github.com/cvmfs/cvmfs/pull/1547","diff_url":"https://github.com/cvmfs/cvmfs/pull/1547.diff","patch_url":"https://github.com/cvmfs/cvmfs/pull/1547.patch","issue_url":"https://api.github.com/repos/cvmfs/cvmfs/issues/1547","number":1547,"state":"closed","locked":false,"title":"Feature: Regenerate Reflog from Available Catalog and History Chains","user":{"login":"reneme","id":1562139,"avatar_url":"https://avatars.githubusercontent.com/u/1562139?v=3","gravatar_id":"","url":"https://api.github.com/users/reneme","html_url":"https://github.com/reneme","followers_url":"https://api.github.com/users/reneme/followers","following_url":"https://api.github.com/users/reneme/following{/other_user}","gists_url":"https://api.github.com/users/reneme/gists{/gist_id}","starred_url":"https://api.github.com/users/reneme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneme/subscriptions","organizations_url":"https://api.github.com/users/reneme/orgs","repos_url":"https://api.github.com/users/reneme/repos","events_url":"https://api.github.com/users/reneme/events{/privacy}","received_events_url":"https://api.github.com/users/reneme/received_events","type":"User","site_admin":false},"body":"This should be the final building block of the `Reflog` business. It introduces a new `cvmfs_swissknife` command (i.e. `recreate_reflog`) that walks as much of the root `Catalog` and `History` chains as possible to reconstruct the `Reflog`.\r\n\r\nThe use case is two fold: **1st** it allows for an easy transition from the old-style garbage collection to the `Reflog` driven version and **2nd** it serves as a failure recovery mechanism in case the original `Reflog` has been corrupted. We cannot guarantee that a full `Reflog` is reconstructable from the stored `Catalog` and `History` chains but this gives some best-effort.\r\n\r\nFurthermore this contains a [minor syslog logging fix](https://github.com/cvmfs/cvmfs/commit/87bdd4aeb3526c4f5395a6b7307d144da0640374) which I was too lazy to extract. Also it adapts integration test 563 \"Garbage Collection After Legacy Repository Import\" to specifically check for the new feature along with CernVM-FS 2.0.x catalogs.\r\n\r\nNote: This builds on top of [FIX: Reflog Update During Snapshotting](https://github.com/cvmfs/cvmfs/pull/1544), [Feature: Reflog cleanup on Garbage Collection](https://github.com/cvmfs/cvmfs/pull/1545) and [Feature: Swissknife Ignores Missing Reflog](https://github.com/cvmfs/cvmfs/pull/1546).","created_at":"2016-03-23T16:27:08Z","updated_at":"2016-04-06T15:42:20Z","closed_at":"2016-04-06T15:42:20Z","merged_at":"2016-04-06T15:42:20Z","merge_commit_sha":"82b138a403f333e550fa6b54e574f964e3d58aaf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547/commits","review_comments_url":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547/comments","review_comment_url":"https://api.github.com/repos/cvmfs/cvmfs/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cvmfs/cvmfs/issues/1547/comments","statuses_url":"https://api.github.com/repos/cvmfs/cvmfs/statuses/0d181c006cab140a5c6553cd53710b458e27884d","head":{"label":"reneme:feature-reflog_lazy_create","ref":"feature-reflog_lazy_create","sha":"0d181c006cab140a5c6553cd53710b458e27884d","user":{"login":"reneme","id":1562139,"avatar_url":"https://avatars.githubusercontent.com/u/1562139?v=3","gravatar_id":"","url":"https://api.github.com/users/reneme","html_url":"https://github.com/reneme","followers_url":"https://api.github.com/users/reneme/followers","following_url":"https://api.github.com/users/reneme/following{/other_user}","gists_url":"https://api.github.com/users/reneme/gists{/gist_id}","starred_url":"https://api.github.com/users/reneme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneme/subscriptions","organizations_url":"https://api.github.com/users/reneme/orgs","repos_url":"https://api.github.com/users/reneme/repos","events_url":"https://api.github.com/users/reneme/events{/privacy}","received_events_url":"https://api.github.com/users/reneme/received_events","type":"User","site_admin":false},"repo":{"id":6594761,"name":"cvmfs","full_name":"reneme/cvmfs","owner":{"login":"reneme","id":1562139,"avatar_url":"https://avatars.githubusercontent.com/u/1562139?v=3","gravatar_id":"","url":"https://api.github.com/users/reneme","html_url":"https://github.com/reneme","followers_url":"https://api.github.com/users/reneme/followers","following_url":"https://api.github.com/users/reneme/following{/other_user}","gists_url":"https://api.github.com/users/reneme/gists{/gist_id}","starred_url":"https://api.github.com/users/reneme/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reneme/subscriptions","organizations_url":"https://api.github.com/users/reneme/orgs","repos_url":"https://api.github.com/users/reneme/repos","events_url":"https://api.github.com/users/reneme/events{/privacy}","received_events_url":"https://api.github.com/users/reneme/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/reneme/cvmfs","description":"The CernVM File System","fork":true,"url":"https://api.github.com/repos/reneme/cvmfs","forks_url":"https://api.github.com/repos/reneme/cvmfs/forks","keys_url":"https://api.github.com/repos/reneme/cvmfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/reneme/cvmfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/reneme/cvmfs/teams","hooks_url":"https://api.github.com/repos/reneme/cvmfs/hooks","issue_events_url":"https://api.github.com/repos/reneme/cvmfs/issues/events{/number}","events_url":"https://api.github.com/repos/reneme/cvmfs/events","assignees_url":"https://api.github.com/repos/reneme/cvmfs/assignees{/user}","branches_url":"https://api.github.com/repos/reneme/cvmfs/branches{/branch}","tags_url":"https://api.github.com/repos/reneme/cvmfs/tags","blobs_url":"https://api.github.com/repos/reneme/cvmfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/reneme/cvmfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/reneme/cvmfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/reneme/cvmfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/reneme/cvmfs/statuses/{sha}","languages_url":"https://api.github.com/repos/reneme/cvmfs/languages","stargazers_url":"https://api.github.com/repos/reneme/cvmfs/stargazers","contributors_url":"https://api.github.com/repos/reneme/cvmfs/contributors","subscribers_url":"https://api.github.com/repos/reneme/cvmfs/subscribers","subscription_url":"https://api.github.com/repos/reneme/cvmfs/subscription","commits_url":"https://api.github.com/repos/reneme/cvmfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/reneme/cvmfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/reneme/cvmfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/reneme/cvmfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/reneme/cvmfs/contents/{+path}","compare_url":"https://api.github.com/repos/reneme/cvmfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/reneme/cvmfs/merges","archive_url":"https://api.github.com/repos/reneme/cvmfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/reneme/cvmfs/downloads","issues_url":"https://api.github.com/repos/reneme/cvmfs/issues{/number}","pulls_url":"https://api.github.com/repos/reneme/cvmfs/pulls{/number}","milestones_url":"https://api.github.com/repos/reneme/cvmfs/milestones{/number}","notifications_url":"https://api.github.com/repos/reneme/cvmfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/reneme/cvmfs/labels{/name}","releases_url":"https://api.github.com/repos/reneme/cvmfs/releases{/id}","deployments_url":"https://api.github.com/repos/reneme/cvmfs/deployments","created_at":"2012-11-08T10:30:55Z","updated_at":"2015-05-17T23:18:28Z","pushed_at":"2016-04-06T15:07:19Z","git_url":"git://github.com/reneme/cvmfs.git","ssh_url":"git@github.com:reneme/cvmfs.git","clone_url":"https://github.com/reneme/cvmfs.git","svn_url":"https://github.com/reneme/cvmfs","homepage":"http://cernvm.cern.ch/portal/filesystem","size":95516,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":0,"default_branch":"devel"}},"base":{"label":"cvmfs:devel","ref":"devel","sha":"fba9d36f71ffc5f44567c863a1fd24c3ec16f462","user":{"login":"cvmfs","id":1560859,"avatar_url":"https://avatars.githubusercontent.com/u/1560859?v=3","gravatar_id":"","url":"https://api.github.com/users/cvmfs","html_url":"https://github.com/cvmfs","followers_url":"https://api.github.com/users/cvmfs/followers","following_url":"https://api.github.com/users/cvmfs/following{/other_user}","gists_url":"https://api.github.com/users/cvmfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cvmfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvmfs/subscriptions","organizations_url":"https://api.github.com/users/cvmfs/orgs","repos_url":"https://api.github.com/users/cvmfs/repos","events_url":"https://api.github.com/users/cvmfs/events{/privacy}","received_events_url":"https://api.github.com/users/cvmfs/received_events","type":"Organization","site_admin":false},"repo":{"id":3784908,"name":"cvmfs","full_name":"cvmfs/cvmfs","owner":{"login":"cvmfs","id":1560859,"avatar_url":"https://avatars.githubusercontent.com/u/1560859?v=3","gravatar_id":"","url":"https://api.github.com/users/cvmfs","html_url":"https://github.com/cvmfs","followers_url":"https://api.github.com/users/cvmfs/followers","following_url":"https://api.github.com/users/cvmfs/following{/other_user}","gists_url":"https://api.github.com/users/cvmfs/gists{/gist_id}","starred_url":"https://api.github.com/users/cvmfs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cvmfs/subscriptions","organizations_url":"https://api.github.com/users/cvmfs/orgs","repos_url":"https://api.github.com/users/cvmfs/repos","events_url":"https://api.github.com/users/cvmfs/events{/privacy}","received_events_url":"https://api.github.com/users/cvmfs/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cvmfs/cvmfs","description":"The CernVM File System","fork":false,"url":"https://api.github.com/repos/cvmfs/cvmfs","forks_url":"https://api.github.com/repos/cvmfs/cvmfs/forks","keys_url":"https://api.github.com/repos/cvmfs/cvmfs/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cvmfs/cvmfs/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cvmfs/cvmfs/teams","hooks_url":"https://api.github.com/repos/cvmfs/cvmfs/hooks","issue_events_url":"https://api.github.com/repos/cvmfs/cvmfs/issues/events{/number}","events_url":"https://api.github.com/repos/cvmfs/cvmfs/events","assignees_url":"https://api.github.com/repos/cvmfs/cvmfs/assignees{/user}","branches_url":"https://api.github.com/repos/cvmfs/cvmfs/branches{/branch}","tags_url":"https://api.github.com/repos/cvmfs/cvmfs/tags","blobs_url":"https://api.github.com/repos/cvmfs/cvmfs/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cvmfs/cvmfs/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cvmfs/cvmfs/git/refs{/sha}","trees_url":"https://api.github.com/repos/cvmfs/cvmfs/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cvmfs/cvmfs/statuses/{sha}","languages_url":"https://api.github.com/repos/cvmfs/cvmfs/languages","stargazers_url":"https://api.github.com/repos/cvmfs/cvmfs/stargazers","contributors_url":"https://api.github.com/repos/cvmfs/cvmfs/contributors","subscribers_url":"https://api.github.com/repos/cvmfs/cvmfs/subscribers","subscription_url":"https://api.github.com/repos/cvmfs/cvmfs/subscription","commits_url":"https://api.github.com/repos/cvmfs/cvmfs/commits{/sha}","git_commits_url":"https://api.github.com/repos/cvmfs/cvmfs/git/commits{/sha}","comments_url":"https://api.github.com/repos/cvmfs/cvmfs/comments{/number}","issue_comment_url":"https://api.github.com/repos/cvmfs/cvmfs/issues/comments{/number}","contents_url":"https://api.github.com/repos/cvmfs/cvmfs/contents/{+path}","compare_url":"https://api.github.com/repos/cvmfs/cvmfs/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cvmfs/cvmfs/merges","archive_url":"https://api.github.com/repos/cvmfs/cvmfs/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cvmfs/cvmfs/downloads","issues_url":"https://api.github.com/repos/cvmfs/cvmfs/issues{/number}","pulls_url":"https://api.github.com/repos/cvmfs/cvmfs/pulls{/number}","milestones_url":"https://api.github.com/repos/cvmfs/cvmfs/milestones{/number}","notifications_url":"https://api.github.com/repos/cvmfs/cvmfs/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cvmfs/cvmfs/labels{/name}","releases_url":"https://api.github.com/repos/cvmfs/cvmfs/releases{/id}","deployments_url":"https://api.github.com/repos/cvmfs/cvmfs/deployments","created_at":"2012-03-21T09:10:41Z","updated_at":"2016-03-19T08:45:07Z","pushed_at":"2016-04-06T15:42:20Z","git_url":"git://github.com/cvmfs/cvmfs.git","ssh_url":"git@github.com:cvmfs/cvmfs.git","clone_url":"https://github.com/cvmfs/cvmfs.git","svn_url":"https://github.com/cvmfs/cvmfs","homepage":"http://cernvm.cern.ch/portal/filesystem","size":104746,"stargazers_count":41,"watchers_count":41,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":10,"forks":45,"open_issues":10,"watchers":41,"default_branch":"devel"}},"_links":{"self":{"href":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547"},"html":{"href":"https://github.com/cvmfs/cvmfs/pull/1547"},"issue":{"href":"https://api.github.com/repos/cvmfs/cvmfs/issues/1547"},"comments":{"href":"https://api.github.com/repos/cvmfs/cvmfs/issues/1547/comments"},"review_comments":{"href":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547/comments"},"review_comment":{"href":"https://api.github.com/repos/cvmfs/cvmfs/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cvmfs/cvmfs/pulls/1547/commits"},"statuses":{"href":"https://api.github.com/repos/cvmfs/cvmfs/statuses/0d181c006cab140a5c6553cd53710b458e27884d"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"jblomer","id":1557360,"avatar_url":"https://avatars.githubusercontent.com/u/1557360?v=3","gravatar_id":"","url":"https://api.github.com/users/jblomer","html_url":"https://github.com/jblomer","followers_url":"https://api.github.com/users/jblomer/followers","following_url":"https://api.github.com/users/jblomer/following{/other_user}","gists_url":"https://api.github.com/users/jblomer/gists{/gist_id}","starred_url":"https://api.github.com/users/jblomer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jblomer/subscriptions","organizations_url":"https://api.github.com/users/jblomer/orgs","repos_url":"https://api.github.com/users/jblomer/repos","events_url":"https://api.github.com/users/jblomer/events{/privacy}","received_events_url":"https://api.github.com/users/jblomer/received_events","type":"User","site_admin":false},"comments":0,"review_comments":2,"commits":42,"additions":1246,"deletions":109,"changed_files":30}}