You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "Xu Shao Hong (Jira)" <ji...@apache.org> on 2022/08/15 03:52:00 UTC

[jira] [Created] (HDDS-7125) Inaccurate numBlocksDeletion when getTransactions

Xu Shao Hong created HDDS-7125:
----------------------------------

             Summary: Inaccurate numBlocksDeletion when getTransactions
                 Key: HDDS-7125
                 URL: https://issues.apache.org/jira/browse/HDDS-7125
             Project: Apache Ozone
          Issue Type: Bug
            Reporter: Xu Shao Hong
            Assignee: Xu Shao Hong


Currently, we find that the deleted block txns in SCM RDB are not updated anymore.

For the unhealthy container(no healthy replica and not enough replicas), SCM will not commit the txn and remove it from RDB until all desired replicas commit it. SCM will add the committed replica to the map `dnsWithTransactionCommitted`.

In the process of `getTransactions`, SCM will read the txn out from RDB and try to add it to the result, but if the txn existed in theĀ `dnsWithTransactionCommitted`, SCM will ignore it. No matter whether ignoring the txn, the numBlocksDeletion is still counting this, which will lead to nonsense running, and actually returning empty txns when the cluster has a certain amount of unhealthy containers.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org