HBASE-13417 batchCoprocessorService() does not handle NULL keys (Abhishek Singh Chouhan)

This commit is contained in:
Nick Dimiduk 2015-04-28 16:37:58 -07:00
parent ee562faeb3
commit 5e3127304d
1 changed files with 6 additions and 0 deletions

View File

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