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


##########
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:
   We can use existing method,
   ```
   @VisibleForTesting
     public OzoneBucket getBucket(Integer bucketNumber) {
       return waitUntilAddedToMap(buckets, bucketNumber);
     }
   ```



-- 
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: issues-unsubscr...@ozone.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@ozone.apache.org
For additional commands, e-mail: issues-h...@ozone.apache.org

Reply via email to