navinko commented on code in PR #12057:
URL: https://github.com/apache/ozone/pull/12057#discussion_r4588684445


##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/response/key/OMDirectoriesPurgeResponseWithFSO.java:
##########
@@ -194,7 +193,14 @@ public void processPaths(
   }
 
   @VisibleForTesting
-  public Map<Pair<String, String>, OmBucketInfo> getVolBucketInfoMap() {
+  public Map<VolumeBucketName, OmBucketInfo> getVolBucketInfoMap() {
     return volBucketInfoMap;
   }
+
+  /**
+   * A volume name paired with the name of a bucket under it,
+   * used as the key of the bucket infos mutated by a directory purge.
+   */
+  public record VolumeBucketName(String volumeName, String bucketName) {
+  }

Review Comment:
   Thanks @adoroszlai for the review. Good point, i will be moving the class to 
top-level under ozone-common/org.apache.hadoop.ozone.om.helpers, where i see 
several helper classes is placed and will reuse VolumeBucket from here.



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