HBASE-21221 Ineffective assertion in TestFromClientSide3#testMultiRowMutations - addendum tightens condition for finding exception
This commit is contained in:
parent
42aa3dd463
commit
b9bb14e0fd
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue