You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by GitBox <gi...@apache.org> on 2022/04/12 22:24:19 UTC
[GitHub] [ozone] smengcl commented on a diff in pull request #3256: HDDS-6375. [Multi-Tenant] Implement tenant request metrics
smengcl commented on code in PR #3256:
URL: https://github.com/apache/ozone/pull/3256#discussion_r848918551
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/tenant/OMTenantDeleteRequest.java:
##########
@@ -82,6 +83,9 @@ public OMClientResponse validateAndUpdateCache(
OzoneManager ozoneManager, long transactionLogIndex,
OzoneManagerDoubleBufferHelper ozoneManagerDoubleBufferHelper) {
+ final OMMetrics omMetrics = ozoneManager.getMetrics();
+ omMetrics.incNumTenantDeletes();
+
Review Comment:
By design we are not deleting the volume created with the tenant. We instead prompt the admin to delete it manually:
https://github.com/apache/ozone/blob/f99130b6f9d371cc169768e101529c372ad9ef47/hadoop-ozone/tools/src/main/java/org/apache/hadoop/ozone/shell/tenant/TenantDeleteHandler.java#L50-L55
##########
hadoop-ozone/ozone-manager/src/main/java/org/apache/hadoop/ozone/om/request/s3/tenant/OMTenantDeleteRequest.java:
##########
@@ -202,10 +206,10 @@ public OMClientResponse validateAndUpdateCache(
if (exception == null) {
LOG.info("Deleted tenant '{}' and volume '{}'", tenantId, volumeName);
- // TODO: HDDS-6375: omMetrics.decNumTenants()
+ omMetrics.decNumTenants();
Review Comment:
Same as above.
--
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: issues-unsubscribe@ozone.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org