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


##########
hadoop-hdfs-project/hadoop-hdfs-rbf/src/test/java/org/apache/hadoop/hdfs/server/federation/router/TestObserverWithRouter.java:
##########
@@ -599,9 +604,6 @@ public void testRouterResponseHeaderState() {
     namespaceIdMap.put("ns2", new LongAccumulator(Math::max, Long.MIN_VALUE));
 
     Map<String, Long> mockMapping = new HashMap<>();
-    mockMapping.put("ns0", 10L);
-    mockMapping.put("ns2", 100L);
-    mockMapping.put("ns3", Long.MIN_VALUE);

Review Comment:
   Var mockMapping should be removed . Because 
routerStateIdContext.updateResponseState(responseHeaderBuilder) will update 
RouterFederatedState  with namespaceIdMap's keys and values that meet the 
requirements. 
   Thanks



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