{"action":"created","comment":{"url":"https://api.github.com/repos/hail-is/hail/pulls/comments/81567892","pull_request_review_id":2538357,"id":81567892,"diff_hunk":"@@ -179,6 +185,24 @@ object ExportVariantsSolr extends Command with Serializable {\n         cc\n       }\n \n+    //delete and re-create the collection\n+    try {\n+      CollectionAdminRequest.deleteCollection(collection).process(solr)\n+      info(s\"deleted collection ${collection}\")\n+    } catch {\n+      case e: SolrException => warn(s\"exportvariantssolr: unable to delete collection ${collection}: ${e}\")\n+    }\n+\n+    try {\n+      //zookeeper needs to already have a pre-loaded config named \"default_config\".\n+      //if it doesn't, you can upload it using the solr command-line client:\n+      //   solr create_collection -c default_config; solr delete -c default_config\n+      CollectionAdminRequest.createCollection(collection, \"default_config\", numShards, 1).process(solr)\n+      info(s\"created new collection ${collection}\")\n+    } catch {\n+      case e: SolrException => warn(s\"exportvariantssolr: unable to create collection ${collection}: ${e}\")\n+    }","path":"src/main/scala/org/broadinstitute/hail/driver/ExportVariantsSolr.scala","position":66,"original_position":66,"commit_id":"f300c0bf13a8bba33dd91feb4ec36eec956eb51b","original_commit_id":"3f47daf5307a6e9959a3194ed34f4a6bfdb43f56","user":{"login":"danking","id":106194,"avatar_url":"https://avatars.githubusercontent.com/u/106194?v=3","gravatar_id":"","url":"https://api.github.com/users/danking","html_url":"https://github.com/danking","followers_url":"https://api.github.com/users/danking/followers","following_url":"https://api.github.com/users/danking/following{/other_user}","gists_url":"https://api.github.com/users/danking/gists{/gist_id}","starred_url":"https://api.github.com/users/danking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danking/subscriptions","organizations_url":"https://api.github.com/users/danking/orgs","repos_url":"https://api.github.com/users/danking/repos","events_url":"https://api.github.com/users/danking/events{/privacy}","received_events_url":"https://api.github.com/users/danking/received_events","type":"User","site_admin":false},"body":"Yeah I think that makes sense","created_at":"2016-10-03T14:58:50Z","updated_at":"2016-10-03T14:58:50Z","html_url":"https://github.com/hail-is/hail/pull/845#discussion_r81567892","pull_request_url":"https://api.github.com/repos/hail-is/hail/pulls/845","_links":{"self":{"href":"https://api.github.com/repos/hail-is/hail/pulls/comments/81567892"},"html":{"href":"https://github.com/hail-is/hail/pull/845#discussion_r81567892"},"pull_request":{"href":"https://api.github.com/repos/hail-is/hail/pulls/845"}}},"pull_request":{"url":"https://api.github.com/repos/hail-is/hail/pulls/845","id":86647872,"html_url":"https://github.com/hail-is/hail/pull/845","diff_url":"https://github.com/hail-is/hail/pull/845.diff","patch_url":"https://github.com/hail-is/hail/pull/845.patch","issue_url":"https://api.github.com/repos/hail-is/hail/issues/845","number":845,"state":"open","locked":false,"title":"delete, recreate collection before exporting variants","user":{"login":"bw2","id":6240170,"avatar_url":"https://avatars.githubusercontent.com/u/6240170?v=3","gravatar_id":"","url":"https://api.github.com/users/bw2","html_url":"https://github.com/bw2","followers_url":"https://api.github.com/users/bw2/followers","following_url":"https://api.github.com/users/bw2/following{/other_user}","gists_url":"https://api.github.com/users/bw2/gists{/gist_id}","starred_url":"https://api.github.com/users/bw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw2/subscriptions","organizations_url":"https://api.github.com/users/bw2/orgs","repos_url":"https://api.github.com/users/bw2/repos","events_url":"https://api.github.com/users/bw2/events{/privacy}","received_events_url":"https://api.github.com/users/bw2/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-09-25T11:59:42Z","updated_at":"2016-10-03T14:58:50Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e6cf7d8afd96e44b473f2aa93a481432ad2649a2","assignee":{"login":"danking","id":106194,"avatar_url":"https://avatars.githubusercontent.com/u/106194?v=3","gravatar_id":"","url":"https://api.github.com/users/danking","html_url":"https://github.com/danking","followers_url":"https://api.github.com/users/danking/followers","following_url":"https://api.github.com/users/danking/following{/other_user}","gists_url":"https://api.github.com/users/danking/gists{/gist_id}","starred_url":"https://api.github.com/users/danking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danking/subscriptions","organizations_url":"https://api.github.com/users/danking/orgs","repos_url":"https://api.github.com/users/danking/repos","events_url":"https://api.github.com/users/danking/events{/privacy}","received_events_url":"https://api.github.com/users/danking/received_events","type":"User","site_admin":false},"assignees":[{"login":"danking","id":106194,"avatar_url":"https://avatars.githubusercontent.com/u/106194?v=3","gravatar_id":"","url":"https://api.github.com/users/danking","html_url":"https://github.com/danking","followers_url":"https://api.github.com/users/danking/followers","following_url":"https://api.github.com/users/danking/following{/other_user}","gists_url":"https://api.github.com/users/danking/gists{/gist_id}","starred_url":"https://api.github.com/users/danking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/danking/subscriptions","organizations_url":"https://api.github.com/users/danking/orgs","repos_url":"https://api.github.com/users/danking/repos","events_url":"https://api.github.com/users/danking/events{/privacy}","received_events_url":"https://api.github.com/users/danking/received_events","type":"User","site_admin":false},{"login":"cseed","id":1244990,"avatar_url":"https://avatars.githubusercontent.com/u/1244990?v=3","gravatar_id":"","url":"https://api.github.com/users/cseed","html_url":"https://github.com/cseed","followers_url":"https://api.github.com/users/cseed/followers","following_url":"https://api.github.com/users/cseed/following{/other_user}","gists_url":"https://api.github.com/users/cseed/gists{/gist_id}","starred_url":"https://api.github.com/users/cseed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cseed/subscriptions","organizations_url":"https://api.github.com/users/cseed/orgs","repos_url":"https://api.github.com/users/cseed/repos","events_url":"https://api.github.com/users/cseed/events{/privacy}","received_events_url":"https://api.github.com/users/cseed/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/hail-is/hail/pulls/845/commits","review_comments_url":"https://api.github.com/repos/hail-is/hail/pulls/845/comments","review_comment_url":"https://api.github.com/repos/hail-is/hail/pulls/comments{/number}","comments_url":"https://api.github.com/repos/hail-is/hail/issues/845/comments","statuses_url":"https://api.github.com/repos/hail-is/hail/statuses/f300c0bf13a8bba33dd91feb4ec36eec956eb51b","head":{"label":"bw2:master","ref":"master","sha":"f300c0bf13a8bba33dd91feb4ec36eec956eb51b","user":{"login":"bw2","id":6240170,"avatar_url":"https://avatars.githubusercontent.com/u/6240170?v=3","gravatar_id":"","url":"https://api.github.com/users/bw2","html_url":"https://github.com/bw2","followers_url":"https://api.github.com/users/bw2/followers","following_url":"https://api.github.com/users/bw2/following{/other_user}","gists_url":"https://api.github.com/users/bw2/gists{/gist_id}","starred_url":"https://api.github.com/users/bw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw2/subscriptions","organizations_url":"https://api.github.com/users/bw2/orgs","repos_url":"https://api.github.com/users/bw2/repos","events_url":"https://api.github.com/users/bw2/events{/privacy}","received_events_url":"https://api.github.com/users/bw2/received_events","type":"User","site_admin":false},"repo":{"id":68552495,"name":"hail","full_name":"bw2/hail","owner":{"login":"bw2","id":6240170,"avatar_url":"https://avatars.githubusercontent.com/u/6240170?v=3","gravatar_id":"","url":"https://api.github.com/users/bw2","html_url":"https://github.com/bw2","followers_url":"https://api.github.com/users/bw2/followers","following_url":"https://api.github.com/users/bw2/following{/other_user}","gists_url":"https://api.github.com/users/bw2/gists{/gist_id}","starred_url":"https://api.github.com/users/bw2/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bw2/subscriptions","organizations_url":"https://api.github.com/users/bw2/orgs","repos_url":"https://api.github.com/users/bw2/repos","events_url":"https://api.github.com/users/bw2/events{/privacy}","received_events_url":"https://api.github.com/users/bw2/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bw2/hail","description":"Scalable genetic data analysis","fork":true,"url":"https://api.github.com/repos/bw2/hail","forks_url":"https://api.github.com/repos/bw2/hail/forks","keys_url":"https://api.github.com/repos/bw2/hail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bw2/hail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bw2/hail/teams","hooks_url":"https://api.github.com/repos/bw2/hail/hooks","issue_events_url":"https://api.github.com/repos/bw2/hail/issues/events{/number}","events_url":"https://api.github.com/repos/bw2/hail/events","assignees_url":"https://api.github.com/repos/bw2/hail/assignees{/user}","branches_url":"https://api.github.com/repos/bw2/hail/branches{/branch}","tags_url":"https://api.github.com/repos/bw2/hail/tags","blobs_url":"https://api.github.com/repos/bw2/hail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bw2/hail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bw2/hail/git/refs{/sha}","trees_url":"https://api.github.com/repos/bw2/hail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bw2/hail/statuses/{sha}","languages_url":"https://api.github.com/repos/bw2/hail/languages","stargazers_url":"https://api.github.com/repos/bw2/hail/stargazers","contributors_url":"https://api.github.com/repos/bw2/hail/contributors","subscribers_url":"https://api.github.com/repos/bw2/hail/subscribers","subscription_url":"https://api.github.com/repos/bw2/hail/subscription","commits_url":"https://api.github.com/repos/bw2/hail/commits{/sha}","git_commits_url":"https://api.github.com/repos/bw2/hail/git/commits{/sha}","comments_url":"https://api.github.com/repos/bw2/hail/comments{/number}","issue_comment_url":"https://api.github.com/repos/bw2/hail/issues/comments{/number}","contents_url":"https://api.github.com/repos/bw2/hail/contents/{+path}","compare_url":"https://api.github.com/repos/bw2/hail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bw2/hail/merges","archive_url":"https://api.github.com/repos/bw2/hail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bw2/hail/downloads","issues_url":"https://api.github.com/repos/bw2/hail/issues{/number}","pulls_url":"https://api.github.com/repos/bw2/hail/pulls{/number}","milestones_url":"https://api.github.com/repos/bw2/hail/milestones{/number}","notifications_url":"https://api.github.com/repos/bw2/hail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bw2/hail/labels{/name}","releases_url":"https://api.github.com/repos/bw2/hail/releases{/id}","deployments_url":"https://api.github.com/repos/bw2/hail/deployments","created_at":"2016-09-18T23:16:59Z","updated_at":"2016-09-18T23:17:01Z","pushed_at":"2016-10-02T16:23:35Z","git_url":"git://github.com/bw2/hail.git","ssh_url":"git@github.com:bw2/hail.git","clone_url":"https://github.com/bw2/hail.git","svn_url":"https://github.com/bw2/hail","homepage":"https://hail.is","size":6868,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"hail-is:master","ref":"master","sha":"fbff1d962a283ea78270c4793024f7812bbb2255","user":{"login":"hail-is","id":20861792,"avatar_url":"https://avatars.githubusercontent.com/u/20861792?v=3","gravatar_id":"","url":"https://api.github.com/users/hail-is","html_url":"https://github.com/hail-is","followers_url":"https://api.github.com/users/hail-is/followers","following_url":"https://api.github.com/users/hail-is/following{/other_user}","gists_url":"https://api.github.com/users/hail-is/gists{/gist_id}","starred_url":"https://api.github.com/users/hail-is/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hail-is/subscriptions","organizations_url":"https://api.github.com/users/hail-is/orgs","repos_url":"https://api.github.com/users/hail-is/repos","events_url":"https://api.github.com/users/hail-is/events{/privacy}","received_events_url":"https://api.github.com/users/hail-is/received_events","type":"Organization","site_admin":false},"repo":{"id":45069467,"name":"hail","full_name":"hail-is/hail","owner":{"login":"hail-is","id":20861792,"avatar_url":"https://avatars.githubusercontent.com/u/20861792?v=3","gravatar_id":"","url":"https://api.github.com/users/hail-is","html_url":"https://github.com/hail-is","followers_url":"https://api.github.com/users/hail-is/followers","following_url":"https://api.github.com/users/hail-is/following{/other_user}","gists_url":"https://api.github.com/users/hail-is/gists{/gist_id}","starred_url":"https://api.github.com/users/hail-is/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hail-is/subscriptions","organizations_url":"https://api.github.com/users/hail-is/orgs","repos_url":"https://api.github.com/users/hail-is/repos","events_url":"https://api.github.com/users/hail-is/events{/privacy}","received_events_url":"https://api.github.com/users/hail-is/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/hail-is/hail","description":"Scalable genetic data analysis","fork":false,"url":"https://api.github.com/repos/hail-is/hail","forks_url":"https://api.github.com/repos/hail-is/hail/forks","keys_url":"https://api.github.com/repos/hail-is/hail/keys{/key_id}","collaborators_url":"https://api.github.com/repos/hail-is/hail/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/hail-is/hail/teams","hooks_url":"https://api.github.com/repos/hail-is/hail/hooks","issue_events_url":"https://api.github.com/repos/hail-is/hail/issues/events{/number}","events_url":"https://api.github.com/repos/hail-is/hail/events","assignees_url":"https://api.github.com/repos/hail-is/hail/assignees{/user}","branches_url":"https://api.github.com/repos/hail-is/hail/branches{/branch}","tags_url":"https://api.github.com/repos/hail-is/hail/tags","blobs_url":"https://api.github.com/repos/hail-is/hail/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/hail-is/hail/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/hail-is/hail/git/refs{/sha}","trees_url":"https://api.github.com/repos/hail-is/hail/git/trees{/sha}","statuses_url":"https://api.github.com/repos/hail-is/hail/statuses/{sha}","languages_url":"https://api.github.com/repos/hail-is/hail/languages","stargazers_url":"https://api.github.com/repos/hail-is/hail/stargazers","contributors_url":"https://api.github.com/repos/hail-is/hail/contributors","subscribers_url":"https://api.github.com/repos/hail-is/hail/subscribers","subscription_url":"https://api.github.com/repos/hail-is/hail/subscription","commits_url":"https://api.github.com/repos/hail-is/hail/commits{/sha}","git_commits_url":"https://api.github.com/repos/hail-is/hail/git/commits{/sha}","comments_url":"https://api.github.com/repos/hail-is/hail/comments{/number}","issue_comment_url":"https://api.github.com/repos/hail-is/hail/issues/comments{/number}","contents_url":"https://api.github.com/repos/hail-is/hail/contents/{+path}","compare_url":"https://api.github.com/repos/hail-is/hail/compare/{base}...{head}","merges_url":"https://api.github.com/repos/hail-is/hail/merges","archive_url":"https://api.github.com/repos/hail-is/hail/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/hail-is/hail/downloads","issues_url":"https://api.github.com/repos/hail-is/hail/issues{/number}","pulls_url":"https://api.github.com/repos/hail-is/hail/pulls{/number}","milestones_url":"https://api.github.com/repos/hail-is/hail/milestones{/number}","notifications_url":"https://api.github.com/repos/hail-is/hail/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/hail-is/hail/labels{/name}","releases_url":"https://api.github.com/repos/hail-is/hail/releases{/id}","deployments_url":"https://api.github.com/repos/hail-is/hail/deployments","created_at":"2015-10-27T20:55:42Z","updated_at":"2016-09-30T20:42:29Z","pushed_at":"2016-10-03T13:37:21Z","git_url":"git://github.com/hail-is/hail.git","ssh_url":"git@github.com:hail-is/hail.git","clone_url":"https://github.com/hail-is/hail.git","svn_url":"https://github.com/hail-is/hail","homepage":"https://hail.is","size":8303,"stargazers_count":53,"watchers_count":53,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":23,"mirror_url":null,"open_issues_count":241,"forks":23,"open_issues":241,"watchers":53,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/hail-is/hail/pulls/845"},"html":{"href":"https://github.com/hail-is/hail/pull/845"},"issue":{"href":"https://api.github.com/repos/hail-is/hail/issues/845"},"comments":{"href":"https://api.github.com/repos/hail-is/hail/issues/845/comments"},"review_comments":{"href":"https://api.github.com/repos/hail-is/hail/pulls/845/comments"},"review_comment":{"href":"https://api.github.com/repos/hail-is/hail/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/hail-is/hail/pulls/845/commits"},"statuses":{"href":"https://api.github.com/repos/hail-is/hail/statuses/f300c0bf13a8bba33dd91feb4ec36eec956eb51b"}}}}
{"actor":{"display_login":"danking"}}