Repository: hbase
Updated Branches:
  refs/heads/branch-1.0 f3cb55be7 -> 77eafa9fa


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/77eafa9f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/77eafa9f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/77eafa9f

Branch: refs/heads/branch-1.0
Commit: 77eafa9fa40ee2713f09fc4a754c959cad192c01
Parents: f3cb55b
Author: Nick Dimiduk <[email protected]>
Authored: Tue Apr 28 16:37:58 2015 -0700
Committer: Nick Dimiduk <[email protected]>
Committed: Tue Apr 28 16:43:44 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/77eafa9f/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 e8189b5..13827d6 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
@@ -1818,6 +1818,12 @@ public class HTable implements HTableInterface, 
RegionLocator {
       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);

Reply via email to