HBASE-10221. Region from coprocessor invocations can be null on failure

git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@1552967 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Kyle Purtell 2013-12-22 06:46:55 +00:00
parent eebdd8061f
commit 7e5abab822
1 changed files with 3 additions and 1 deletions

View File

@ -1483,8 +1483,10 @@ public class HTable implements HTableInterface {
new TreeMap<byte[], R>(Bytes.BYTES_COMPARATOR));
coprocessorService(service, startKey, endKey, callable, new Batch.Callback<R>() {
public void update(byte[] region, byte[] row, R value) {
if (region != null) {
results.put(region, value);
}
}
});
return results;
}