Repository: hbase Updated Branches: refs/heads/master ee562faeb -> 5e3127304
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/5e312730 Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/5e312730 Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/5e312730 Branch: refs/heads/master Commit: 5e3127304d65a7d0ad1abdb14c63cf1cbca0d391 Parents: ee562fa Author: Nick Dimiduk <[email protected]> Authored: Tue Apr 28 16:37:58 2015 -0700 Committer: Nick Dimiduk <[email protected]> Committed: Tue Apr 28 16:37:58 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/5e312730/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 6cdfc8a..e0c2977 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 @@ -1639,6 +1639,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);
