Shuo Huang created HDDS-17449:
---------------------------------
Summary: 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
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]