You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "goiri (via GitHub)" <gi...@apache.org> on 2023/09/01 16:24:40 UTC

[GitHub] [hadoop] goiri commented on a diff in pull request #5990: HDFS-17166. RBF: Throwing NoNamenodesAvailableException for a long time, when failover

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


##########
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:
   It'd be nice to add a log for people to understand what's is happening.
   I don't know if it should be behind a config though.



-- 
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: common-issues-unsubscribe@hadoop.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-issues-help@hadoop.apache.org