slfan1989 commented on code in PR #7437:
URL: https://github.com/apache/hadoop/pull/7437#discussion_r1976209351


##########
hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common/src/main/java/org/apache/hadoop/yarn/server/federation/store/impl/ZKFederationStateStoreOpDurations.java:
##########
@@ -236,4 +237,9 @@ public void removeStoredTokenDuration(long startTime, long 
endTime) {
   public void getTokenByRouterStoreTokenDuration(long startTime, long endTime) 
{
     getTokenByRouterStoreToken.add(endTime - startTime);
   }
+
+  @VisibleForTesting
+  protected ZKFederationStateStoreOpDurations resetOpDurations() {

Review Comment:
   To ensure that the unit test passes in Junit5, I added a reset method here 
to make the execution result match the expected outcome.



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