xiaoyuyao commented on a change in pull request #2011:
URL: https://github.com/apache/ozone/pull/2011#discussion_r590512893



##########
File path: 
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/file/OMFileRequest.java
##########
@@ -932,4 +934,50 @@ public static long getParentID(long bucketId, 
Iterator<Path> pathComponents,
 
     return lastKnownParentId;
   }
+
+  /**
+   * get a list of keys for checking acls.
+   * Returns a list only if the key is a directory and has children.
+   * Otherwise returns an empty list
+   * @param ozoneManager
+   * @param volumeName
+   * @param bucketName
+   * @param keyName
+   * @return
+   * @throws IOException
+   */
+  public static List<String> getKeyListForAclCheck(OzoneManager ozoneManager,

Review comment:
       Can we provide a API support batching as the the number of keys under 
recursive check can be huge?




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

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