aajisaka commented on a change in pull request #2267:
URL: https://github.com/apache/hadoop/pull/2267#discussion_r482766610



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcClient.java
##########
@@ -582,9 +583,9 @@ private Object invoke(String nsId, int retryCount, final 
Method method,
    * @return If the exception comes from an unavailable subcluster.
    */
   public static boolean isUnavailableException(IOException ioe) {
-    if (ioe instanceof ConnectException ||

Review comment:
       Now I have no idea.
   I copied most of the code from `FederationTestUtils#simulateSlowNameNode` 
and created `FederationTestUtils#simulateThrowSocketExceptionNameNode`, but it 
did not work as expected.




----------------------------------------------------------------
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]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to