[ 
https://issues.apache.org/jira/browse/HDDS-7125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Hui Fei resolved HDDS-7125.
---------------------------
    Fix Version/s: 1.3.0
       Resolution: Fixed

> 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
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 1.3.0
>
>
> 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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to