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

This commit is contained in:
tedyu 2016-10-27 08:47:24 -07:00
parent d35b65883c
commit a9526f6fdb
2 changed files with 2 additions and 2 deletions

View File

@ -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);

View File

@ -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