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

Chi-Hsuan Huang updated HDDS-17449:
-----------------------------------
    Fix Version/s: 2.3.0

> Optimize per-datanode block counting in SCM block deletion
> ----------------------------------------------------------
>
>                 Key: HDDS-17449
>                 URL: https://issues.apache.org/jira/browse/HDDS-17449
>             Project: Apache Ozone
>          Issue Type: Improvement
>          Components: SCM
>            Reporter: Shuo Huang
>            Assignee: Shuo Huang
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.3.0
>
>
> While selecting deleted block transactions, SCM checks the number of blocks 
> already selected for each datanode.
>  
> DatanodeDeletedBlockTransactions#getNumberOfBlocksForDatanode recalculates 
> the count by scanning all transactions already selected for the datanode.
> Repeating this for every candidate transaction makes transaction selection 
> quadratic as the batch grows.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to