hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ndimi...@apache.org
Subject hbase git commit: HBASE-13417 batchCoprocessorService() does not handle NULL keys (Abhishek Singh Chouhan)
Date Tue, 28 Apr 2015 23:46:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/branch-1.1 76bb8750b -> 241bb2c65


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

Branch: refs/heads/branch-1.1
Commit: 241bb2c65ab42d89d397f0be8a376d54c1cc9e86
Parents: 76bb875
Author: Nick Dimiduk <ndimiduk@apache.org>
Authored: Tue Apr 28 16:37:58 2015 -0700
Committer: Nick Dimiduk <ndimiduk@apache.org>
Committed: Tue Apr 28 16:42:06 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/241bb2c6/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);


Mime
View raw message