aryangupta1998 commented on code in PR #8539:
URL: https://github.com/apache/ozone/pull/8539#discussion_r2120847369


##########
hadoop-ozone/freon/src/main/java/org/apache/hadoop/ozone/freon/RandomKeyGenerator.java:
##########
@@ -646,6 +654,17 @@ long getUnsuccessfulValidationCount() {
     return validateWrites ? writeValidationFailureCount.get() : 0;
   }
 
+  /**
+   * Returns the bucket for the given bucket number.
+   *
+   * @param bucketNumber bucket index
+   * @return corresponding OzoneBucket instance
+   */
+  @VisibleForTesting
+  OzoneBucket getBucketForTesting(Integer bucketNumber) {
+    return waitUntilAddedToMap(buckets, bucketNumber);
+  }

Review Comment:
   Can't we use the existing getBucket()?



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