HBASE-21221 Ineffective assertion in TestFromClientSide3#testMultiRowMutations - addendum tightens condition for finding exception

This commit is contained in:
tedyu 2018-10-03 08:22:57 -07:00
parent 42aa3dd463
commit b9bb14e0fd
1 changed files with 2 additions and 1 deletions

View File

@ -53,6 +53,7 @@ import org.apache.hadoop.hbase.coprocessor.ObserverContext;
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessor;
import org.apache.hadoop.hbase.coprocessor.RegionCoprocessorEnvironment;
import org.apache.hadoop.hbase.coprocessor.RegionObserver;
import org.apache.hadoop.hbase.exceptions.UnknownProtocolException;
import org.apache.hadoop.hbase.ipc.CoprocessorRpcUtils;
import org.apache.hadoop.hbase.ipc.ServerRpcController;
import org.apache.hadoop.hbase.protobuf.generated.MultiRowMutationProtos;
@ -851,7 +852,7 @@ public class TestFromClientSide3 {
CoprocessorRpcUtils.BlockingRpcCallback<MultiRowMutationProtos.MutateRowsResponse>
rpcCallback = new CoprocessorRpcUtils.BlockingRpcCallback<>();
exe.mutateRows(controller, request, rpcCallback);
if (controller.failedOnException()) {
if (controller.failedOnException() && !(controller.getFailedOn() instanceof UnknownProtocolException)) {
exceptionDuringMutateRows.set(true);
}
return rpcCallback.get();