You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "farmmamba (Jira)" <ji...@apache.org> on 2024/09/10 08:51:00 UTC

[jira] [Updated] (HDFS-17609) [FGL] Fix lock mode in some RPC

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

farmmamba updated HDFS-17609:
-----------------------------
    Description: 
* 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.

 

> [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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org