ACCUMULO-3261 Don't set empty ranges on the BatchScanner. If ScanMeta is called early enough in the module, it's possible that it will find no hashes in the Image table and would attempt to set empty ranges on the BatchScanner which throws an error.
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/351c70eb Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/351c70eb Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/351c70eb Branch: refs/heads/1.6 Commit: 351c70eb2dec11baf6606a0063d43a0e29890909 Parents: cc97c51 Author: Josh Elser <els...@apache.org> Authored: Sun Oct 26 20:19:51 2014 -0400 Committer: Josh Elser <els...@apache.org> Committed: Sun Oct 26 20:19:51 2014 -0400 ---------------------------------------------------------------------- .../java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java | 4 ++++ 1 file changed, 4 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/accumulo/blob/351c70eb/test/src/main/java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java ---------------------------------------------------------------------- diff --git a/test/src/main/java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java b/test/src/main/java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java index 5728f25..cda0a6d 100644 --- a/test/src/main/java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java +++ b/test/src/main/java/org/apache/accumulo/test/randomwalk/image/ScanMeta.java @@ -77,6 +77,10 @@ public class ScanMeta extends Test { } log.debug("Found " + hashes.size() + " hashes starting at " + uuid); + + if (hashes.isEmpty()) { + return; + } // use batch scanner to verify all of these exist in index BatchScanner indexScanner = conn.createBatchScanner(indexTableName, Constants.NO_AUTHS, 3);