tanvipenumudy commented on code in PR #6764:
URL: https://github.com/apache/ozone/pull/6764#discussion_r1625634454
##########
hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/bucket/DeleteBucketHandler.java:
##########
@@ -143,6 +145,10 @@ private void deleteFSBucketRecursive(OzoneVolume vol,
OzoneBucket bucket) {
OzoneConfiguration clientConf = new OzoneConfiguration(getConf());
clientConf.set(FS_DEFAULT_NAME_KEY, hostPrefix);
FileSystem fs = FileSystem.get(clientConf);
+ if (handleSpecialVolumeTmp(path, (RootedOzoneFileSystem) fs,
+ clientConf)) {
Review Comment:
In this case, if handleSpecialVolumeTmp() returns true that means we have
encountered the hashed bucket (that would later throw bucket doesn't exist
error).
Do you suggest that we do not return here and just skip the fs.delete block
(but let it proceed further)?
--
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]