LiuGuH commented on code in PR #6412:
URL: https://github.com/apache/hadoop/pull/6412#discussion_r1444119590


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/router/RouterStateIdContext.java:
##########
@@ -86,7 +86,7 @@ public void 
setResponseHeaderState(RpcResponseHeaderProto.Builder headerBuilder)
     }
     RouterFederatedStateProto.Builder builder = 
RouterFederatedStateProto.newBuilder();
     namespaceIdMap.forEach((k, v) -> {
-      if (v.get() != Long.MIN_VALUE) {
+      if ((v.get() != Long.MIN_VALUE) && 
RouterRpcClient.isNamespaceObserverReadEligible(k)) {

Review Comment:
   Thanks for reivew.  Yes, you are right. I will  try to initizalize this in 
RouterStateIdContext.java only. 



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