Repository: hbase Updated Branches: refs/heads/branch-1 3a9304e98 -> cc5a0f361
HBASE-13417 batchCoprocessorService() does not handle NULL keys (Abhishek Singh Chouhan) Project: http://git-wip-us.apache.org/repos/asf/hbase/repo Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/cc5a0f36 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/cc5a0f36 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/cc5a0f36 Branch: refs/heads/branch-1 Commit: cc5a0f361af4c82dfee8cf6ce29d680b77cb3f9a Parents: 3a9304e Author: Nick Dimiduk <[email protected]> Authored: Tue Apr 28 16:37:58 2015 -0700 Committer: Nick Dimiduk <[email protected]> Committed: Tue Apr 28 16:39:56 2015 -0700 ---------------------------------------------------------------------- .../src/main/java/org/apache/hadoop/hbase/client/HTable.java | 6 ++++++ 1 file changed, 6 insertions(+) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hbase/blob/cc5a0f36/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java ---------------------------------------------------------------------- diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java index eedd7f6..8c98d69 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/HTable.java @@ -1800,6 +1800,12 @@ public class HTable implements HTableInterface { byte[] startKey, byte[] endKey, final R responsePrototype, final Callback<R> callback) throws ServiceException, Throwable { + if (startKey == null) { + startKey = HConstants.EMPTY_START_ROW; + } + if (endKey == null) { + endKey = HConstants.EMPTY_END_ROW; + } // get regions covered by the row range Pair<List<byte[]>, List<HRegionLocation>> keysAndRegions = getKeysAndRegionsInRange(startKey, endKey, true);
