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

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

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

   ### Description of PR
   
   updateNameDirSize() has only metrics functionality (i.e. not very critical) 
but has a fair bit of performance impact in one of the more critical methods 
(rollEditLog). It's better to either reduce the metrics update frequency or 
make it update asynchronously to avoid interference with rollEditLog().
   
   ### How was this patch tested?
   
   UT, and production environment.
   
   Before
   <img width="1588" height="434" alt="image" 
src="https://github.com/user-attachments/assets/41aa501e-5df2-4186-bbbb-a2b3479ffe7c";
 />
   
   After
   <img width="1490" height="442" alt="image" 
src="https://github.com/user-attachments/assets/c67c855d-2f04-44d8-a037-7c304000498e";
 />
   




> Prevent updateNameDirSize() from blocking rollEditLog()
> -------------------------------------------------------
>
>                 Key: HDFS-17865
>                 URL: https://issues.apache.org/jira/browse/HDFS-17865
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>            Reporter: Felix N
>            Assignee: Felix N
>            Priority: Minor
>
> updateNameDirSize() has only metrics functionality (i.e. not very critical) 
> but has a fair bit of performance impact in one of the more critical methods 
> (rollEditLog). It's better to either reduce the metrics update frequency or 
> make it update asynchronously to avoid interference with rollEditLog().



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