huaxiangsun commented on a change in pull request #2733:
URL: https://github.com/apache/hbase/pull/2733#discussion_r536460952



##########
File path: 
hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionImplementation.java
##########
@@ -627,7 +628,16 @@ public Configuration getConfiguration() {
 
   private void checkClosed() throws DoNotRetryIOException {
     if (this.closed) {
-      throw new DoNotRetryIOException(toString() + " closed");
+      throw new ConnectionClosedException(toString() + " closed");
+    }
+  }
+
+  /**
+   * Thrown when connection is closed.
+   */
+  private static class ConnectionClosedException extends DoNotRetryIOException 
{
+    ConnectionClosedException(String message) {
+      super(message);

Review comment:
       Otherwise, it looks good.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to