ivandika3 commented on code in PR #5326:
URL: https://github.com/apache/ozone/pull/5326#discussion_r1378311768
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketDeleteRequest.java:
##########
@@ -140,6 +141,14 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
OMException.ResultCodes.BUCKET_NOT_EMPTY);
}
+ // Check if bucket does not contain incomplete MPUs
+ if (omMetadataManager.containsIncompleteMPUs(volumeName, bucketName)) {
+ LOG.debug("bucket: {} still has incomplete multipart uploads",
+ bucketName);
+ throw new OMException("Bucket still has incomplete multipart uploads",
Review Comment:
@swamirishi Thank you for the review. I have updated the debug log and
exception to include volume and bucket name.
--
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]