linyiqun commented on a change in pull request #1445:
URL: https://github.com/apache/ozone/pull/1445#discussion_r541048368
##########
File path:
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/bucket/OMBucketDeleteRequest.java
##########
@@ -134,9 +135,15 @@ public OMClientResponse
validateAndUpdateCache(OzoneManager ozoneManager,
omResponse.setDeleteBucketResponse(
DeleteBucketResponse.newBuilder().build());
+ // update used namespace for volume
+ String volumeKey = omMetadataManager.getVolumeKey(volumeName);
+ OmVolumeArgs omVolumeArgs =
+ omMetadataManager.getVolumeTable().getReadCopy(volumeKey);
+ omVolumeArgs.incrUsedNamespace(-1L);
+
Review comment:
Volume table cache also need to be updated here as we update table
cache in OMBucketCreateRequest.java
----------------------------------------------------------------
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]