rakeshadr commented on code in PR #3175: URL: https://github.com/apache/ozone/pull/3175#discussion_r841390333
########## hadoop-ozone/ozonefs-common/src/main/java/org/apache/hadoop/fs/ozone/BasicRootedOzoneFileSystem.java: ########## @@ -468,6 +468,42 @@ boolean processKeyPath(List<String> keyPathList) { } } + /** + * To be used only by recursiveBucketDelete(). + */ + private class DeleteIteratorWithFSO extends OzoneListingIterator { + private final OzoneBucket bucket; + private final BasicRootedOzoneClientAdapterImpl adapterImpl; + private boolean recursive; + private Path f; + DeleteIteratorWithFSO(Path f, boolean recursive) + throws IOException { + super(f, true); + this.f = f; + this.recursive = recursive; + // Initialize bucket here to reduce number of RPC calls + OFSPath ofsPath = new OFSPath(f); + adapterImpl = (BasicRootedOzoneClientAdapterImpl) adapter; + this.bucket = adapterImpl.getBucket(ofsPath, false); Review Comment: Can you please add a debug log message to know whether the deletion happens via new DeleteIteratorWithFSO. -- 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: dev-unsubscr...@ozone.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@ozone.apache.org For additional commands, e-mail: dev-h...@ozone.apache.org