Revert "NPE in RpcServer causing intermittent UT failure of TestMasterReplication#testHFileCyclicReplication"
This reverts commit b6d4fc955f
.
This commit is contained in:
parent
b6d4fc955f
commit
44d2a9bc1c
|
@ -2298,13 +2298,7 @@ public class RpcServer implements RpcServerInterface, ConfigurationObserver {
|
|||
// The above callBlockingMethod will always return a SE. Strip the SE wrapper before
|
||||
// putting it on the wire. Its needed to adhere to the pb Service Interface but we don't
|
||||
// need to pass it over the wire.
|
||||
if (e instanceof ServiceException) {
|
||||
if (e.getCause() == null) {
|
||||
LOG.debug("Caught a ServiceException with null cause", e);
|
||||
} else {
|
||||
e = e.getCause();
|
||||
}
|
||||
}
|
||||
if (e instanceof ServiceException) e = e.getCause();
|
||||
|
||||
// increment the number of requests that were exceptions.
|
||||
metrics.exception(e);
|
||||
|
|
Loading…
Reference in New Issue