{"action":"created","comment":{"url":"https://api.github.com/repos/druid-io/druid/pulls/comments/137907273","pull_request_review_id":61642648,"id":137907273,"diff_hunk":"@@ -29,14 +29,7 @@\n  */\n public class HighestPriorityTierSelectorStrategy extends AbstractTierSelectorStrategy\n {\n-  private static final Comparator<Integer> comparator = new Comparator<Integer>()\n-  {\n-    @Override\n-    public int compare(Integer o1, Integer o2)\n-    {\n-      return Ints.compare(o2, o1);\n-    }\n-  };\n+  private static final Comparator<Integer> comparator = (Integer o1, Integer o2) -> Ints.compare(o2, o1);","path":"server/src/main/java/io/druid/client/selector/HighestPriorityTierSelectorStrategy.java","position":12,"original_position":12,"commit_id":"cb5a333f31cbba76fffd64cb5f0a5e6c21768bf5","original_commit_id":"cb5a333f31cbba76fffd64cb5f0a5e6c21768bf5","user":{"login":"leventov","id":609240,"avatar_url":"https://avatars0.githubusercontent.com/u/609240?v=4","gravatar_id":"","url":"https://api.github.com/users/leventov","html_url":"https://github.com/leventov","followers_url":"https://api.github.com/users/leventov/followers","following_url":"https://api.github.com/users/leventov/following{/other_user}","gists_url":"https://api.github.com/users/leventov/gists{/gist_id}","starred_url":"https://api.github.com/users/leventov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/leventov/subscriptions","organizations_url":"https://api.github.com/users/leventov/orgs","repos_url":"https://api.github.com/users/leventov/repos","events_url":"https://api.github.com/users/leventov/events{/privacy}","received_events_url":"https://api.github.com/users/leventov/received_events","type":"User","site_admin":false},"body":"It's `Comparator.reverseOrder()`","created_at":"2017-09-08T23:12:47Z","updated_at":"2017-09-08T23:22:07Z","html_url":"https://github.com/druid-io/druid/pull/4764#discussion_r137907273","pull_request_url":"https://api.github.com/repos/druid-io/druid/pulls/4764","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/druid-io/druid/pulls/comments/137907273"},"html":{"href":"https://github.com/druid-io/druid/pull/4764#discussion_r137907273"},"pull_request":{"href":"https://api.github.com/repos/druid-io/druid/pulls/4764"}}},"pull_request":{"url":"https://api.github.com/repos/druid-io/druid/pulls/4764","id":139983604,"html_url":"https://github.com/druid-io/druid/pull/4764","diff_url":"https://github.com/druid-io/druid/pull/4764.diff","patch_url":"https://github.com/druid-io/druid/pull/4764.patch","issue_url":"https://api.github.com/repos/druid-io/druid/issues/4764","number":4764,"state":"open","locked":false,"title":"Use historical node instead of realtime for querying","user":{"login":"niketh","id":626548,"avatar_url":"https://avatars1.githubusercontent.com/u/626548?v=4","gravatar_id":"","url":"https://api.github.com/users/niketh","html_url":"https://github.com/niketh","followers_url":"https://api.github.com/users/niketh/followers","following_url":"https://api.github.com/users/niketh/following{/other_user}","gists_url":"https://api.github.com/users/niketh/gists{/gist_id}","starred_url":"https://api.github.com/users/niketh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niketh/subscriptions","organizations_url":"https://api.github.com/users/niketh/orgs","repos_url":"https://api.github.com/users/niketh/repos","events_url":"https://api.github.com/users/niketh/events{/privacy}","received_events_url":"https://api.github.com/users/niketh/received_events","type":"User","site_admin":false},"body":"If a segment resides in both a historical node and a realtime node, USE the historical node","created_at":"2017-09-08T08:42:12Z","updated_at":"2017-09-08T23:22:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4f41049b8aee8cb37cf4f6ba2073b76a2e89022","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/druid-io/druid/pulls/4764/commits","review_comments_url":"https://api.github.com/repos/druid-io/druid/pulls/4764/comments","review_comment_url":"https://api.github.com/repos/druid-io/druid/pulls/comments{/number}","comments_url":"https://api.github.com/repos/druid-io/druid/issues/4764/comments","statuses_url":"https://api.github.com/repos/druid-io/druid/statuses/cb5a333f31cbba76fffd64cb5f0a5e6c21768bf5","head":{"label":"niketh:use-historical","ref":"use-historical","sha":"cb5a333f31cbba76fffd64cb5f0a5e6c21768bf5","user":{"login":"niketh","id":626548,"avatar_url":"https://avatars1.githubusercontent.com/u/626548?v=4","gravatar_id":"","url":"https://api.github.com/users/niketh","html_url":"https://github.com/niketh","followers_url":"https://api.github.com/users/niketh/followers","following_url":"https://api.github.com/users/niketh/following{/other_user}","gists_url":"https://api.github.com/users/niketh/gists{/gist_id}","starred_url":"https://api.github.com/users/niketh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niketh/subscriptions","organizations_url":"https://api.github.com/users/niketh/orgs","repos_url":"https://api.github.com/users/niketh/repos","events_url":"https://api.github.com/users/niketh/events{/privacy}","received_events_url":"https://api.github.com/users/niketh/received_events","type":"User","site_admin":false},"repo":{"id":72469845,"name":"druid","full_name":"niketh/druid","owner":{"login":"niketh","id":626548,"avatar_url":"https://avatars1.githubusercontent.com/u/626548?v=4","gravatar_id":"","url":"https://api.github.com/users/niketh","html_url":"https://github.com/niketh","followers_url":"https://api.github.com/users/niketh/followers","following_url":"https://api.github.com/users/niketh/following{/other_user}","gists_url":"https://api.github.com/users/niketh/gists{/gist_id}","starred_url":"https://api.github.com/users/niketh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/niketh/subscriptions","organizations_url":"https://api.github.com/users/niketh/orgs","repos_url":"https://api.github.com/users/niketh/repos","events_url":"https://api.github.com/users/niketh/events{/privacy}","received_events_url":"https://api.github.com/users/niketh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/niketh/druid","description":"Column oriented distributed data store ideal for powering interactive applications","fork":true,"url":"https://api.github.com/repos/niketh/druid","forks_url":"https://api.github.com/repos/niketh/druid/forks","keys_url":"https://api.github.com/repos/niketh/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/niketh/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/niketh/druid/teams","hooks_url":"https://api.github.com/repos/niketh/druid/hooks","issue_events_url":"https://api.github.com/repos/niketh/druid/issues/events{/number}","events_url":"https://api.github.com/repos/niketh/druid/events","assignees_url":"https://api.github.com/repos/niketh/druid/assignees{/user}","branches_url":"https://api.github.com/repos/niketh/druid/branches{/branch}","tags_url":"https://api.github.com/repos/niketh/druid/tags","blobs_url":"https://api.github.com/repos/niketh/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/niketh/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/niketh/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/niketh/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/niketh/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/niketh/druid/languages","stargazers_url":"https://api.github.com/repos/niketh/druid/stargazers","contributors_url":"https://api.github.com/repos/niketh/druid/contributors","subscribers_url":"https://api.github.com/repos/niketh/druid/subscribers","subscription_url":"https://api.github.com/repos/niketh/druid/subscription","commits_url":"https://api.github.com/repos/niketh/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/niketh/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/niketh/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/niketh/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/niketh/druid/contents/{+path}","compare_url":"https://api.github.com/repos/niketh/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/niketh/druid/merges","archive_url":"https://api.github.com/repos/niketh/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/niketh/druid/downloads","issues_url":"https://api.github.com/repos/niketh/druid/issues{/number}","pulls_url":"https://api.github.com/repos/niketh/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/niketh/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/niketh/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/niketh/druid/labels{/name}","releases_url":"https://api.github.com/repos/niketh/druid/releases{/id}","deployments_url":"https://api.github.com/repos/niketh/druid/deployments","created_at":"2016-10-31T19:16:02Z","updated_at":"2016-10-31T19:16:12Z","pushed_at":"2017-09-08T10:32:13Z","git_url":"git://github.com/niketh/druid.git","ssh_url":"git@github.com:niketh/druid.git","clone_url":"https://github.com/niketh/druid.git","svn_url":"https://github.com/niketh/druid","homepage":"http://druid.io","size":125163,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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":"druid-io:master","ref":"master","sha":"d43687d578bf3dea98b01d0899bcfbb2125d142e","user":{"login":"druid-io","id":4203474,"avatar_url":"https://avatars0.githubusercontent.com/u/4203474?v=4","gravatar_id":"","url":"https://api.github.com/users/druid-io","html_url":"https://github.com/druid-io","followers_url":"https://api.github.com/users/druid-io/followers","following_url":"https://api.github.com/users/druid-io/following{/other_user}","gists_url":"https://api.github.com/users/druid-io/gists{/gist_id}","starred_url":"https://api.github.com/users/druid-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druid-io/subscriptions","organizations_url":"https://api.github.com/users/druid-io/orgs","repos_url":"https://api.github.com/users/druid-io/repos","events_url":"https://api.github.com/users/druid-io/events{/privacy}","received_events_url":"https://api.github.com/users/druid-io/received_events","type":"Organization","site_admin":false},"repo":{"id":6358188,"name":"druid","full_name":"druid-io/druid","owner":{"login":"druid-io","id":4203474,"avatar_url":"https://avatars0.githubusercontent.com/u/4203474?v=4","gravatar_id":"","url":"https://api.github.com/users/druid-io","html_url":"https://github.com/druid-io","followers_url":"https://api.github.com/users/druid-io/followers","following_url":"https://api.github.com/users/druid-io/following{/other_user}","gists_url":"https://api.github.com/users/druid-io/gists{/gist_id}","starred_url":"https://api.github.com/users/druid-io/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/druid-io/subscriptions","organizations_url":"https://api.github.com/users/druid-io/orgs","repos_url":"https://api.github.com/users/druid-io/repos","events_url":"https://api.github.com/users/druid-io/events{/privacy}","received_events_url":"https://api.github.com/users/druid-io/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/druid-io/druid","description":"Column oriented distributed data store ideal for powering interactive applications","fork":false,"url":"https://api.github.com/repos/druid-io/druid","forks_url":"https://api.github.com/repos/druid-io/druid/forks","keys_url":"https://api.github.com/repos/druid-io/druid/keys{/key_id}","collaborators_url":"https://api.github.com/repos/druid-io/druid/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/druid-io/druid/teams","hooks_url":"https://api.github.com/repos/druid-io/druid/hooks","issue_events_url":"https://api.github.com/repos/druid-io/druid/issues/events{/number}","events_url":"https://api.github.com/repos/druid-io/druid/events","assignees_url":"https://api.github.com/repos/druid-io/druid/assignees{/user}","branches_url":"https://api.github.com/repos/druid-io/druid/branches{/branch}","tags_url":"https://api.github.com/repos/druid-io/druid/tags","blobs_url":"https://api.github.com/repos/druid-io/druid/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/druid-io/druid/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/druid-io/druid/git/refs{/sha}","trees_url":"https://api.github.com/repos/druid-io/druid/git/trees{/sha}","statuses_url":"https://api.github.com/repos/druid-io/druid/statuses/{sha}","languages_url":"https://api.github.com/repos/druid-io/druid/languages","stargazers_url":"https://api.github.com/repos/druid-io/druid/stargazers","contributors_url":"https://api.github.com/repos/druid-io/druid/contributors","subscribers_url":"https://api.github.com/repos/druid-io/druid/subscribers","subscription_url":"https://api.github.com/repos/druid-io/druid/subscription","commits_url":"https://api.github.com/repos/druid-io/druid/commits{/sha}","git_commits_url":"https://api.github.com/repos/druid-io/druid/git/commits{/sha}","comments_url":"https://api.github.com/repos/druid-io/druid/comments{/number}","issue_comment_url":"https://api.github.com/repos/druid-io/druid/issues/comments{/number}","contents_url":"https://api.github.com/repos/druid-io/druid/contents/{+path}","compare_url":"https://api.github.com/repos/druid-io/druid/compare/{base}...{head}","merges_url":"https://api.github.com/repos/druid-io/druid/merges","archive_url":"https://api.github.com/repos/druid-io/druid/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/druid-io/druid/downloads","issues_url":"https://api.github.com/repos/druid-io/druid/issues{/number}","pulls_url":"https://api.github.com/repos/druid-io/druid/pulls{/number}","milestones_url":"https://api.github.com/repos/druid-io/druid/milestones{/number}","notifications_url":"https://api.github.com/repos/druid-io/druid/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/druid-io/druid/labels{/name}","releases_url":"https://api.github.com/repos/druid-io/druid/releases{/id}","deployments_url":"https://api.github.com/repos/druid-io/druid/deployments","created_at":"2012-10-23T19:08:07Z","updated_at":"2017-09-08T17:05:41Z","pushed_at":"2017-09-08T18:33:01Z","git_url":"git://github.com/druid-io/druid.git","ssh_url":"git@github.com:druid-io/druid.git","clone_url":"https://github.com/druid-io/druid.git","svn_url":"https://github.com/druid-io/druid","homepage":"http://druid.io","size":125571,"stargazers_count":5402,"watchers_count":5402,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1313,"mirror_url":null,"open_issues_count":790,"forks":1313,"open_issues":790,"watchers":5402,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/druid-io/druid/pulls/4764"},"html":{"href":"https://github.com/druid-io/druid/pull/4764"},"issue":{"href":"https://api.github.com/repos/druid-io/druid/issues/4764"},"comments":{"href":"https://api.github.com/repos/druid-io/druid/issues/4764/comments"},"review_comments":{"href":"https://api.github.com/repos/druid-io/druid/pulls/4764/comments"},"review_comment":{"href":"https://api.github.com/repos/druid-io/druid/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/druid-io/druid/pulls/4764/commits"},"statuses":{"href":"https://api.github.com/repos/druid-io/druid/statuses/cb5a333f31cbba76fffd64cb5f0a5e6c21768bf5"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"leventov"}}