hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From te...@apache.org
Subject hbase git commit: HBASE-16886 hbase-client: scanner with reversed=true and small=true gets no result - addendum fixes reference to MAX_BYTE_ARRAY
Date Thu, 27 Oct 2016 15:47:31 GMT
Repository: hbase
Updated Branches:
  refs/heads/master d35b65883 -> a9526f6fd


HBASE-16886 hbase-client: scanner with reversed=true and small=true gets no result - addendum
fixes reference to MAX_BYTE_ARRAY


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/a9526f6f
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/a9526f6f
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/a9526f6f

Branch: refs/heads/master
Commit: a9526f6fdb12efc7d6195185cfc2c8e6aa927af1
Parents: d35b658
Author: tedyu <yuzhihong@gmail.com>
Authored: Thu Oct 27 08:47:24 2016 -0700
Committer: tedyu <yuzhihong@gmail.com>
Committed: Thu Oct 27 08:47:24 2016 -0700

----------------------------------------------------------------------
 .../org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java | 2 +-
 .../main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java  | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/a9526f6f/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java
index 8fbacbf..ffa8af7 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ClientSmallReversedScanner.java
@@ -321,7 +321,7 @@ public class ClientSmallReversedScanner extends ReversedClientScanner
{
           && (localStartKey == null || Bytes.equals(localStartKey, HConstants.EMPTY_BYTE_ARRAY)))
{
         // HBASE-16886: if not setting startRow, then we will use a range [MAX_BYTE_ARRAY,
+oo) to
         // locate a region list, and the last one in region list is the region where our
scan start.
-        locateStartRow = ClientScanner.MAX_BYTE_ARRAY;
+        locateStartRow = ConnectionUtils.MAX_BYTE_ARRAY;
       }
 
       scan.setStartRow(localStartKey);

http://git-wip-us.apache.org/repos/asf/hbase/blob/a9526f6f/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
index e0030e8..42d5ce8 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java
@@ -230,7 +230,7 @@ public final class ConnectionUtils {
 
   // A byte array in which all elements are the max byte, and it is used to
   // construct closest front row
-  static byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);
+  public static byte[] MAX_BYTE_ARRAY = Bytes.createMaxByteArray(9);
 
   /**
    * Create the closest row after the specified row


Mime
View raw message