KeeProMise commented on code in PR #5990:
URL: https://github.com/apache/hadoop/pull/5990#discussion_r1313862686


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterRpcClient.java:
##########
@@ -599,6 +599,9 @@ public Object invokeMethod(
           }
           LOG.error("Cannot get available namenode for {} {} error: {}",
               nsId, rpcAddress, ioe.getMessage());
+          if (this.namenodeResolver != null) {
+            this.namenodeResolver.rotateCache(nsId, namenode, 
shouldUseObserver);

Review Comment:
   1. Added log 
   2. Since this is a bug not a feature, most users must need fix the bug by 
default, so I don’t think we need to add config here.
   I don't think there are a large number of users here who don't need this bug 
fixed.
   But if you think you need to add it, you can give a config name and I will 
add one later, but I personally think it is not necessary.



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

To unsubscribe, e-mail: [email protected]

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