diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.java index 377b285132b4..108b9068a2d9 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/ipc/RemoteWithExtrasException.java @@ -117,8 +117,9 @@ private IOException instantiateException(Class cls) throw // if an exception defaults to meaning isServerOverloaded, we use that. // otherwise, see if the remote exception value should mean setting to true. HBaseServerException serverException = (HBaseServerException) ex; - if (serverOverloaded && !serverException.isServerOverloaded()) - serverException.setServerOverloaded(true); + if (serverOverloaded && !serverException.isServerOverloaded()) { + serverException.setServerOverloaded(true); + } } return ex;