{"action":"created","comment":{"url":"https://api.github.com/repos/palantir/atlasdb/pulls/comments/42457260","id":42457260,"diff_hunk":"@@ -306,6 +329,31 @@ private long getCellsExamined(SweepProgressRowResult progress, SweepResults resu\n         }\n     }\n \n+    /**\n+     * Check whether the table being swept was dropped. If so, stop sweeping it and move on.\n+     * @return Whether the table being swept was dropped.\n+     */\n+    private boolean checkAndRepairTableDrop() {\n+        try {\n+            Set<String> tables = kvs.getAllTableNames();\n+            SweepProgressRowResult result = txManager.runTaskReadOnly(\n+                    new RuntimeTransactionTask<SweepProgressRowResult>() {\n+                        @Override\n+                        public SweepProgressRowResult execute(Transaction t) {\n+                            return tableFactory.getSweepProgressTable(t).getRow(SweepProgressRow.of(0L)).orNull();\n+                        }\n+                    });\n+            if (result == null || tables.contains(result.getFullTableName())) {\n+                return false;\n+            }\n+            kvs.truncateTable(SweepProgressTable.getRawTableName());\n+            return true;\n+        } catch (RuntimeException e) {\n+            log.error(\"Failed to check whether the table being swept was dropped. Continuing under the assumption that it wasn't...\", e);","path":"atlasdb-impl-shared/src/main/java/com/palantir/atlasdb/sweep/BackgroundSweeper.java","position":104,"original_position":104,"commit_id":"3d1184c67ab5a63aee74b5e72337bd550b7d5c1a","original_commit_id":"3d1184c67ab5a63aee74b5e72337bd550b7d5c1a","user":{"login":"carrino","id":978139,"avatar_url":"https://avatars.githubusercontent.com/u/978139?v=3","gravatar_id":"","url":"https://api.github.com/users/carrino","html_url":"https://github.com/carrino","followers_url":"https://api.github.com/users/carrino/followers","following_url":"https://api.github.com/users/carrino/following{/other_user}","gists_url":"https://api.github.com/users/carrino/gists{/gist_id}","starred_url":"https://api.github.com/users/carrino/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/carrino/subscriptions","organizations_url":"https://api.github.com/users/carrino/orgs","repos_url":"https://api.github.com/users/carrino/repos","events_url":"https://api.github.com/users/carrino/events{/privacy}","received_events_url":"https://api.github.com/users/carrino/received_events","type":"User","site_admin":false},"body":"warn","created_at":"2015-10-20T05:25:25Z","updated_at":"2015-10-20T05:25:25Z","html_url":"https://github.com/palantir/atlasdb/pull/107#discussion_r42457260","pull_request_url":"https://api.github.com/repos/palantir/atlasdb/pulls/107","_links":{"self":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/comments/42457260"},"html":{"href":"https://github.com/palantir/atlasdb/pull/107#discussion_r42457260"},"pull_request":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/107"}}},"pull_request":{"url":"https://api.github.com/repos/palantir/atlasdb/pulls/107","id":47930591,"html_url":"https://github.com/palantir/atlasdb/pull/107","diff_url":"https://github.com/palantir/atlasdb/pull/107.diff","patch_url":"https://github.com/palantir/atlasdb/pull/107.patch","issue_url":"https://api.github.com/repos/palantir/atlasdb/issues/107","number":107,"state":"open","locked":false,"title":"ported forwarded changes to background sweeper batching","user":{"login":"rjullman","id":714325,"avatar_url":"https://avatars.githubusercontent.com/u/714325?v=3","gravatar_id":"","url":"https://api.github.com/users/rjullman","html_url":"https://github.com/rjullman","followers_url":"https://api.github.com/users/rjullman/followers","following_url":"https://api.github.com/users/rjullman/following{/other_user}","gists_url":"https://api.github.com/users/rjullman/gists{/gist_id}","starred_url":"https://api.github.com/users/rjullman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjullman/subscriptions","organizations_url":"https://api.github.com/users/rjullman/orgs","repos_url":"https://api.github.com/users/rjullman/repos","events_url":"https://api.github.com/users/rjullman/events{/privacy}","received_events_url":"https://api.github.com/users/rjullman/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-10-16T16:19:13Z","updated_at":"2015-10-20T05:25:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3d2aac62aa4e37a0cc022b7b00006075d61bab3a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/palantir/atlasdb/pulls/107/commits","review_comments_url":"https://api.github.com/repos/palantir/atlasdb/pulls/107/comments","review_comment_url":"https://api.github.com/repos/palantir/atlasdb/pulls/comments{/number}","comments_url":"https://api.github.com/repos/palantir/atlasdb/issues/107/comments","statuses_url":"https://api.github.com/repos/palantir/atlasdb/statuses/3d1184c67ab5a63aee74b5e72337bd550b7d5c1a","head":{"label":"palantir:updates/batched_sweeper","ref":"updates/batched_sweeper","sha":"3d1184c67ab5a63aee74b5e72337bd550b7d5c1a","user":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"repo":{"id":36960637,"name":"atlasdb","full_name":"palantir/atlasdb","owner":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/palantir/atlasdb","description":"Transactional Distributed Database layer","fork":false,"url":"https://api.github.com/repos/palantir/atlasdb","forks_url":"https://api.github.com/repos/palantir/atlasdb/forks","keys_url":"https://api.github.com/repos/palantir/atlasdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palantir/atlasdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palantir/atlasdb/teams","hooks_url":"https://api.github.com/repos/palantir/atlasdb/hooks","issue_events_url":"https://api.github.com/repos/palantir/atlasdb/issues/events{/number}","events_url":"https://api.github.com/repos/palantir/atlasdb/events","assignees_url":"https://api.github.com/repos/palantir/atlasdb/assignees{/user}","branches_url":"https://api.github.com/repos/palantir/atlasdb/branches{/branch}","tags_url":"https://api.github.com/repos/palantir/atlasdb/tags","blobs_url":"https://api.github.com/repos/palantir/atlasdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palantir/atlasdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palantir/atlasdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/palantir/atlasdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palantir/atlasdb/statuses/{sha}","languages_url":"https://api.github.com/repos/palantir/atlasdb/languages","stargazers_url":"https://api.github.com/repos/palantir/atlasdb/stargazers","contributors_url":"https://api.github.com/repos/palantir/atlasdb/contributors","subscribers_url":"https://api.github.com/repos/palantir/atlasdb/subscribers","subscription_url":"https://api.github.com/repos/palantir/atlasdb/subscription","commits_url":"https://api.github.com/repos/palantir/atlasdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/palantir/atlasdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/palantir/atlasdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/palantir/atlasdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/palantir/atlasdb/contents/{+path}","compare_url":"https://api.github.com/repos/palantir/atlasdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palantir/atlasdb/merges","archive_url":"https://api.github.com/repos/palantir/atlasdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palantir/atlasdb/downloads","issues_url":"https://api.github.com/repos/palantir/atlasdb/issues{/number}","pulls_url":"https://api.github.com/repos/palantir/atlasdb/pulls{/number}","milestones_url":"https://api.github.com/repos/palantir/atlasdb/milestones{/number}","notifications_url":"https://api.github.com/repos/palantir/atlasdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palantir/atlasdb/labels{/name}","releases_url":"https://api.github.com/repos/palantir/atlasdb/releases{/id}","created_at":"2015-06-05T23:42:44Z","updated_at":"2015-10-18T12:52:46Z","pushed_at":"2015-10-16T16:19:13Z","git_url":"git://github.com/palantir/atlasdb.git","ssh_url":"git@github.com:palantir/atlasdb.git","clone_url":"https://github.com/palantir/atlasdb.git","svn_url":"https://github.com/palantir/atlasdb","homepage":"https://github.com/palantir/atlasdb/wiki","size":17464,"stargazers_count":184,"watchers_count":184,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":23,"forks":15,"open_issues":23,"watchers":184,"default_branch":"develop"}},"base":{"label":"palantir:develop","ref":"develop","sha":"9d100664df6eefd6ea17decefaa36112bd5f07e6","user":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"repo":{"id":36960637,"name":"atlasdb","full_name":"palantir/atlasdb","owner":{"login":"palantir","id":303157,"avatar_url":"https://avatars.githubusercontent.com/u/303157?v=3","gravatar_id":"","url":"https://api.github.com/users/palantir","html_url":"https://github.com/palantir","followers_url":"https://api.github.com/users/palantir/followers","following_url":"https://api.github.com/users/palantir/following{/other_user}","gists_url":"https://api.github.com/users/palantir/gists{/gist_id}","starred_url":"https://api.github.com/users/palantir/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/palantir/subscriptions","organizations_url":"https://api.github.com/users/palantir/orgs","repos_url":"https://api.github.com/users/palantir/repos","events_url":"https://api.github.com/users/palantir/events{/privacy}","received_events_url":"https://api.github.com/users/palantir/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/palantir/atlasdb","description":"Transactional Distributed Database layer","fork":false,"url":"https://api.github.com/repos/palantir/atlasdb","forks_url":"https://api.github.com/repos/palantir/atlasdb/forks","keys_url":"https://api.github.com/repos/palantir/atlasdb/keys{/key_id}","collaborators_url":"https://api.github.com/repos/palantir/atlasdb/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/palantir/atlasdb/teams","hooks_url":"https://api.github.com/repos/palantir/atlasdb/hooks","issue_events_url":"https://api.github.com/repos/palantir/atlasdb/issues/events{/number}","events_url":"https://api.github.com/repos/palantir/atlasdb/events","assignees_url":"https://api.github.com/repos/palantir/atlasdb/assignees{/user}","branches_url":"https://api.github.com/repos/palantir/atlasdb/branches{/branch}","tags_url":"https://api.github.com/repos/palantir/atlasdb/tags","blobs_url":"https://api.github.com/repos/palantir/atlasdb/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/palantir/atlasdb/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/palantir/atlasdb/git/refs{/sha}","trees_url":"https://api.github.com/repos/palantir/atlasdb/git/trees{/sha}","statuses_url":"https://api.github.com/repos/palantir/atlasdb/statuses/{sha}","languages_url":"https://api.github.com/repos/palantir/atlasdb/languages","stargazers_url":"https://api.github.com/repos/palantir/atlasdb/stargazers","contributors_url":"https://api.github.com/repos/palantir/atlasdb/contributors","subscribers_url":"https://api.github.com/repos/palantir/atlasdb/subscribers","subscription_url":"https://api.github.com/repos/palantir/atlasdb/subscription","commits_url":"https://api.github.com/repos/palantir/atlasdb/commits{/sha}","git_commits_url":"https://api.github.com/repos/palantir/atlasdb/git/commits{/sha}","comments_url":"https://api.github.com/repos/palantir/atlasdb/comments{/number}","issue_comment_url":"https://api.github.com/repos/palantir/atlasdb/issues/comments{/number}","contents_url":"https://api.github.com/repos/palantir/atlasdb/contents/{+path}","compare_url":"https://api.github.com/repos/palantir/atlasdb/compare/{base}...{head}","merges_url":"https://api.github.com/repos/palantir/atlasdb/merges","archive_url":"https://api.github.com/repos/palantir/atlasdb/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/palantir/atlasdb/downloads","issues_url":"https://api.github.com/repos/palantir/atlasdb/issues{/number}","pulls_url":"https://api.github.com/repos/palantir/atlasdb/pulls{/number}","milestones_url":"https://api.github.com/repos/palantir/atlasdb/milestones{/number}","notifications_url":"https://api.github.com/repos/palantir/atlasdb/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/palantir/atlasdb/labels{/name}","releases_url":"https://api.github.com/repos/palantir/atlasdb/releases{/id}","created_at":"2015-06-05T23:42:44Z","updated_at":"2015-10-18T12:52:46Z","pushed_at":"2015-10-16T16:19:13Z","git_url":"git://github.com/palantir/atlasdb.git","ssh_url":"git@github.com:palantir/atlasdb.git","clone_url":"https://github.com/palantir/atlasdb.git","svn_url":"https://github.com/palantir/atlasdb","homepage":"https://github.com/palantir/atlasdb/wiki","size":17464,"stargazers_count":184,"watchers_count":184,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":15,"mirror_url":null,"open_issues_count":23,"forks":15,"open_issues":23,"watchers":184,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/107"},"html":{"href":"https://github.com/palantir/atlasdb/pull/107"},"issue":{"href":"https://api.github.com/repos/palantir/atlasdb/issues/107"},"comments":{"href":"https://api.github.com/repos/palantir/atlasdb/issues/107/comments"},"review_comments":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/107/comments"},"review_comment":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/palantir/atlasdb/pulls/107/commits"},"statuses":{"href":"https://api.github.com/repos/palantir/atlasdb/statuses/3d1184c67ab5a63aee74b5e72337bd550b7d5c1a"}}}}