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 3a9304e98f
commit cc5a0f361a

View File

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