{"action":"created","comment":{"url":"https://api.github.com/repos/apache/accumulo/pulls/comments/28597050","id":28597050,"diff_hunk":"@@ -629,32 +676,37 @@ public float getProgress() throws IOException {\n         }\n         for (Map.Entry<KeyExtent,List<Range>> extentRanges : tserverBin.getValue().entrySet()) {\n           Range ke = extentRanges.getKey().toDataRange();\n-          for (Range r : extentRanges.getValue()) {\n-            if (autoAdjust) {\n-              // divide ranges into smaller ranges, based on the tablets\n-              RangeInputSplit split = new RangeInputSplit(tableName, tableId, ke.clip(r), new String[] {location});\n-\n-              split.setOffline(tableConfig.isOfflineScan());\n-              split.setIsolatedScan(tableConfig.shouldUseIsolatedScanners());\n-              split.setUsesLocalIterators(tableConfig.shouldUseLocalIterators());\n-              split.setMockInstance(mockInstance);\n-              split.setFetchedColumns(tableConfig.getFetchedColumns());\n-              split.setPrincipal(principal);\n-              split.setToken(token);\n-              split.setInstanceName(instance.getInstanceName());\n-              split.setZooKeepers(instance.getZooKeepers());\n-              split.setAuths(auths);\n-              split.setIterators(tableConfig.getIterators());\n-              split.setLogLevel(logLevel);\n-\n-              splits.add(split);\n-            } else {\n-              // don't divide ranges\n-              ArrayList<String> locations = splitsToAdd.get(r);\n-              if (locations == null)\n-                locations = new ArrayList<String>(1);\n-              locations.add(location);\n-              splitsToAdd.put(r, locations);\n+          if (batchScan) {\n+            // group ranges by tablet to be read by a BatchScanner\n+            ArrayList<Range> clippedRanges = new ArrayList<Range>();\n+            for(Range r: extentRanges.getValue())","path":"core/src/main/java/org/apache/accumulo/core/client/mapred/AbstractInputFormat.java","position":323,"original_position":291,"commit_id":"0b8432161a8db71114a43c0472b1595b242872f6","original_commit_id":"00e7aa6e787d9e7af7bc3899bf8852ec0daa16f1","user":{"login":"echeipesh","id":1158084,"avatar_url":"https://avatars.githubusercontent.com/u/1158084?v=3","gravatar_id":"","url":"https://api.github.com/users/echeipesh","html_url":"https://github.com/echeipesh","followers_url":"https://api.github.com/users/echeipesh/followers","following_url":"https://api.github.com/users/echeipesh/following{/other_user}","gists_url":"https://api.github.com/users/echeipesh/gists{/gist_id}","starred_url":"https://api.github.com/users/echeipesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echeipesh/subscriptions","organizations_url":"https://api.github.com/users/echeipesh/orgs","repos_url":"https://api.github.com/users/echeipesh/repos","events_url":"https://api.github.com/users/echeipesh/events{/privacy}","received_events_url":"https://api.github.com/users/echeipesh/received_events","type":"User","site_admin":false},"body":"I agree, that case doesn't make much sense. I'll add an exception and mention it in javadoc.","created_at":"2015-04-17T14:13:32Z","updated_at":"2015-04-17T14:13:32Z","html_url":"https://github.com/apache/accumulo/pull/25#discussion_r28597050","pull_request_url":"https://api.github.com/repos/apache/accumulo/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/apache/accumulo/pulls/comments/28597050"},"html":{"href":"https://github.com/apache/accumulo/pull/25#discussion_r28597050"},"pull_request":{"href":"https://api.github.com/repos/apache/accumulo/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/apache/accumulo/pulls/25","id":32374456,"html_url":"https://github.com/apache/accumulo/pull/25","diff_url":"https://github.com/apache/accumulo/pull/25.diff","patch_url":"https://github.com/apache/accumulo/pull/25.patch","issue_url":"https://api.github.com/repos/apache/accumulo/issues/25","number":25,"state":"open","locked":false,"title":"ACCUMULO-3602 BatchScanner optimization for AccumuloInputFormat","user":{"login":"echeipesh","id":1158084,"avatar_url":"https://avatars.githubusercontent.com/u/1158084?v=3","gravatar_id":"","url":"https://api.github.com/users/echeipesh","html_url":"https://github.com/echeipesh","followers_url":"https://api.github.com/users/echeipesh/followers","following_url":"https://api.github.com/users/echeipesh/following{/other_user}","gists_url":"https://api.github.com/users/echeipesh/gists{/gist_id}","starred_url":"https://api.github.com/users/echeipesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echeipesh/subscriptions","organizations_url":"https://api.github.com/users/echeipesh/orgs","repos_url":"https://api.github.com/users/echeipesh/repos","events_url":"https://api.github.com/users/echeipesh/events{/privacy}","received_events_url":"https://api.github.com/users/echeipesh/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-03-31T22:56:48Z","updated_at":"2015-04-17T14:13:32Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7dc2d8dad941a5686390b6c8659c5ebbad9e0b57","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/accumulo/pulls/25/commits","review_comments_url":"https://api.github.com/repos/apache/accumulo/pulls/25/comments","review_comment_url":"https://api.github.com/repos/apache/accumulo/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/accumulo/issues/25/comments","statuses_url":"https://api.github.com/repos/apache/accumulo/statuses/0b8432161a8db71114a43c0472b1595b242872f6","head":{"label":"echeipesh:ACCUMULO-3602","ref":"ACCUMULO-3602","sha":"0b8432161a8db71114a43c0472b1595b242872f6","user":{"login":"echeipesh","id":1158084,"avatar_url":"https://avatars.githubusercontent.com/u/1158084?v=3","gravatar_id":"","url":"https://api.github.com/users/echeipesh","html_url":"https://github.com/echeipesh","followers_url":"https://api.github.com/users/echeipesh/followers","following_url":"https://api.github.com/users/echeipesh/following{/other_user}","gists_url":"https://api.github.com/users/echeipesh/gists{/gist_id}","starred_url":"https://api.github.com/users/echeipesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echeipesh/subscriptions","organizations_url":"https://api.github.com/users/echeipesh/orgs","repos_url":"https://api.github.com/users/echeipesh/repos","events_url":"https://api.github.com/users/echeipesh/events{/privacy}","received_events_url":"https://api.github.com/users/echeipesh/received_events","type":"User","site_admin":false},"repo":{"id":30932951,"name":"accumulo","full_name":"echeipesh/accumulo","owner":{"login":"echeipesh","id":1158084,"avatar_url":"https://avatars.githubusercontent.com/u/1158084?v=3","gravatar_id":"","url":"https://api.github.com/users/echeipesh","html_url":"https://github.com/echeipesh","followers_url":"https://api.github.com/users/echeipesh/followers","following_url":"https://api.github.com/users/echeipesh/following{/other_user}","gists_url":"https://api.github.com/users/echeipesh/gists{/gist_id}","starred_url":"https://api.github.com/users/echeipesh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/echeipesh/subscriptions","organizations_url":"https://api.github.com/users/echeipesh/orgs","repos_url":"https://api.github.com/users/echeipesh/repos","events_url":"https://api.github.com/users/echeipesh/events{/privacy}","received_events_url":"https://api.github.com/users/echeipesh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/echeipesh/accumulo","description":"Mirror of Apache Accumulo","fork":true,"url":"https://api.github.com/repos/echeipesh/accumulo","forks_url":"https://api.github.com/repos/echeipesh/accumulo/forks","keys_url":"https://api.github.com/repos/echeipesh/accumulo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/echeipesh/accumulo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/echeipesh/accumulo/teams","hooks_url":"https://api.github.com/repos/echeipesh/accumulo/hooks","issue_events_url":"https://api.github.com/repos/echeipesh/accumulo/issues/events{/number}","events_url":"https://api.github.com/repos/echeipesh/accumulo/events","assignees_url":"https://api.github.com/repos/echeipesh/accumulo/assignees{/user}","branches_url":"https://api.github.com/repos/echeipesh/accumulo/branches{/branch}","tags_url":"https://api.github.com/repos/echeipesh/accumulo/tags","blobs_url":"https://api.github.com/repos/echeipesh/accumulo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/echeipesh/accumulo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/echeipesh/accumulo/git/refs{/sha}","trees_url":"https://api.github.com/repos/echeipesh/accumulo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/echeipesh/accumulo/statuses/{sha}","languages_url":"https://api.github.com/repos/echeipesh/accumulo/languages","stargazers_url":"https://api.github.com/repos/echeipesh/accumulo/stargazers","contributors_url":"https://api.github.com/repos/echeipesh/accumulo/contributors","subscribers_url":"https://api.github.com/repos/echeipesh/accumulo/subscribers","subscription_url":"https://api.github.com/repos/echeipesh/accumulo/subscription","commits_url":"https://api.github.com/repos/echeipesh/accumulo/commits{/sha}","git_commits_url":"https://api.github.com/repos/echeipesh/accumulo/git/commits{/sha}","comments_url":"https://api.github.com/repos/echeipesh/accumulo/comments{/number}","issue_comment_url":"https://api.github.com/repos/echeipesh/accumulo/issues/comments{/number}","contents_url":"https://api.github.com/repos/echeipesh/accumulo/contents/{+path}","compare_url":"https://api.github.com/repos/echeipesh/accumulo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/echeipesh/accumulo/merges","archive_url":"https://api.github.com/repos/echeipesh/accumulo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/echeipesh/accumulo/downloads","issues_url":"https://api.github.com/repos/echeipesh/accumulo/issues{/number}","pulls_url":"https://api.github.com/repos/echeipesh/accumulo/pulls{/number}","milestones_url":"https://api.github.com/repos/echeipesh/accumulo/milestones{/number}","notifications_url":"https://api.github.com/repos/echeipesh/accumulo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/echeipesh/accumulo/labels{/name}","releases_url":"https://api.github.com/repos/echeipesh/accumulo/releases{/id}","created_at":"2015-02-17T19:16:46Z","updated_at":"2015-02-17T19:16:53Z","pushed_at":"2015-04-16T14:56:37Z","git_url":"git://github.com/echeipesh/accumulo.git","ssh_url":"git@github.com:echeipesh/accumulo.git","clone_url":"https://github.com/echeipesh/accumulo.git","svn_url":"https://github.com/echeipesh/accumulo","homepage":"","size":43307,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"apache:master","ref":"master","sha":"cf69821d5ff29ae552e7ac65bcef979a8c4dfafb","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2524488,"name":"accumulo","full_name":"apache/accumulo","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/accumulo","description":"Mirror of Apache Accumulo","fork":false,"url":"https://api.github.com/repos/apache/accumulo","forks_url":"https://api.github.com/repos/apache/accumulo/forks","keys_url":"https://api.github.com/repos/apache/accumulo/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/accumulo/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/accumulo/teams","hooks_url":"https://api.github.com/repos/apache/accumulo/hooks","issue_events_url":"https://api.github.com/repos/apache/accumulo/issues/events{/number}","events_url":"https://api.github.com/repos/apache/accumulo/events","assignees_url":"https://api.github.com/repos/apache/accumulo/assignees{/user}","branches_url":"https://api.github.com/repos/apache/accumulo/branches{/branch}","tags_url":"https://api.github.com/repos/apache/accumulo/tags","blobs_url":"https://api.github.com/repos/apache/accumulo/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/accumulo/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/accumulo/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/accumulo/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/accumulo/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/accumulo/languages","stargazers_url":"https://api.github.com/repos/apache/accumulo/stargazers","contributors_url":"https://api.github.com/repos/apache/accumulo/contributors","subscribers_url":"https://api.github.com/repos/apache/accumulo/subscribers","subscription_url":"https://api.github.com/repos/apache/accumulo/subscription","commits_url":"https://api.github.com/repos/apache/accumulo/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/accumulo/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/accumulo/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/accumulo/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/accumulo/contents/{+path}","compare_url":"https://api.github.com/repos/apache/accumulo/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/accumulo/merges","archive_url":"https://api.github.com/repos/apache/accumulo/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/accumulo/downloads","issues_url":"https://api.github.com/repos/apache/accumulo/issues{/number}","pulls_url":"https://api.github.com/repos/apache/accumulo/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/accumulo/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/accumulo/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/accumulo/labels{/name}","releases_url":"https://api.github.com/repos/apache/accumulo/releases{/id}","created_at":"2011-10-06T07:00:09Z","updated_at":"2015-04-16T20:54:59Z","pushed_at":"2015-04-16T20:54:59Z","git_url":"git://github.com/apache/accumulo.git","ssh_url":"git@github.com:apache/accumulo.git","clone_url":"https://github.com/apache/accumulo.git","svn_url":"https://github.com/apache/accumulo","homepage":"","size":77499,"stargazers_count":157,"watchers_count":157,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":86,"mirror_url":"git://git.apache.org/accumulo.git","open_issues_count":3,"forks":86,"open_issues":3,"watchers":157,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/accumulo/pulls/25"},"html":{"href":"https://github.com/apache/accumulo/pull/25"},"issue":{"href":"https://api.github.com/repos/apache/accumulo/issues/25"},"comments":{"href":"https://api.github.com/repos/apache/accumulo/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/accumulo/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/accumulo/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/accumulo/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/apache/accumulo/statuses/0b8432161a8db71114a43c0472b1595b242872f6"}}}}