aryangupta1998 opened a new pull request, #8516:
URL: https://github.com/apache/ozone/pull/8516
## What changes were proposed in this pull request?
NumBlockDeletionTransactionCreated and NumBlockDeletionTransactionCompleted
metrics are updated at each transaction level.
Whereas NumBlockDeletionTransactionSent, NumBlockDeletionTransactionSuccess
and NumBlockDeletionTransactionFailure are updated depending on the
transactions sent to DN. If the same transaction is sent to 3 DN(as blocks will
reside in 3 DNs for Ratis-3), these metrics are updated 3 times.
By looking into below metrics it looks, 1731 transactions are sent and only
577 are completed. But actually 1731 = 577 * 3.
```
"name" :
"Hadoop:service=StorageContainerManager,name=SCMBlockDeletingService",
"modelerType" : "SCMBlockDeletingService",
"tag.Hostname" : "ccycloud-3.obsdeletion-719.root.comops.site",
"NumBlockDeletionCommandSent" : 3,
"NumBlockDeletionCommandSuccess" : 3,
"NumBlockDeletionCommandFailure" : 0,
"NumBlockDeletionTransactionSent" : 1731,
"NumBlockDeletionTransactionSuccess" : 1731,
"NumBlockDeletionTransactionFailure" : 0,
"NumBlockDeletionTransactionCompleted" : 577,
"NumBlockDeletionTransactionCreated" : 5672,
"NumSkippedTransactions" : 23909618,
"NumProcessedTransactions" : 1731,
```
We should have proper naming or have consistent metrics for user to
understand.
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-13103
## How was this patch tested?
Tested Manually.
--
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]