[ 
https://issues.apache.org/jira/browse/HDFS-17904?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18070803#comment-18070803
 ] 

ASF GitHub Bot commented on HDFS-17904:
---------------------------------------

CapMoon opened a new pull request, #8406:
URL: https://github.com/apache/hadoop/pull/8406

   HDFS-17904. ProcessTimedOutExcessBlocks holds the BM lock for a long time
   
   ### Description of PR
   Spent a significant amount of time iterating over the Map<String, 
LightWeightHashSet<Block>> in ExcessRedundancyMap; the iteration should be 
moved outside the lock.
   
   <img width="3958" height="1604" alt="ProcessTimedOutExcessBlocks" 
src="https://github.com/user-attachments/assets/e3b288f9-6f81-4f22-94d3-de6feef0bdff";
 />
   
   
   ### How was this patch tested?
   This PR have be running for almost a year in real production environment.




> ProcessTimedOutExcessBlocks holds the BM lock for a long time
> -------------------------------------------------------------
>
>                 Key: HDFS-17904
>                 URL: https://issues.apache.org/jira/browse/HDFS-17904
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: hdfs
>    Affects Versions: 3.4.3
>            Reporter: yue.wang
>            Priority: Major
>         Attachments: ProcessTimedOutExcessBlocks.png
>
>
> Spent a significant amount of time iterating over the {{Map<String, 
> LightWeightHashSet<Block>>}} in {{{}ExcessRedundancyMap{}}}; the iteration 
> should be moved outside the lock.
> !ProcessTimedOutExcessBlocks.png|width=787,height=319!



--
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