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

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

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

   ### Description of PR
   Fix lock mode in some RPCs and add some assert statement.




> [FGL] Fix lock mode in some RPC
> -------------------------------
>
>                 Key: HDFS-17609
>                 URL: https://issues.apache.org/jira/browse/HDFS-17609
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>            Reporter: farmmamba
>            Assignee: farmmamba
>            Priority: Major
>
> * FSNamesystem#getFilesBlockingDecom : use GLOBAL mode rather than FS mode 
> because of below codes:
> ```java
> for (DatanodeDescriptor dataNode :
>         blockManager.getDatanodeManager().getDatanodes()) {
> }
> ```
>  
>  * FSNamesystem#listOpenFiles: use GLOBAL mode because it calls 
> getFilesBlockingDecom method.
>  * FSNamesystem#getContentSummary: use GLOBAL mode rather than FS mode 
> because it calls computeFileSize method.
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to