HBASE-13417 batchCoprocessorService() does not handle NULL keys (Abhishek Singh Chouhan)
This commit is contained in:
parent
ee562faeb3
commit
5e3127304d
|
@ -1639,6 +1639,12 @@ public class HTable implements HTableInterface {
|
||||||
byte[] startKey, byte[] endKey, final R responsePrototype, final Callback<R> callback)
|
byte[] startKey, byte[] endKey, final R responsePrototype, final Callback<R> callback)
|
||||||
throws ServiceException, Throwable {
|
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
|
// get regions covered by the row range
|
||||||
Pair<List<byte[]>, List<HRegionLocation>> keysAndRegions =
|
Pair<List<byte[]>, List<HRegionLocation>> keysAndRegions =
|
||||||
getKeysAndRegionsInRange(startKey, endKey, true);
|
getKeysAndRegionsInRange(startKey, endKey, true);
|
||||||
|
|
Loading…
Reference in New Issue