[
https://issues.apache.org/jira/browse/HDFS-17609?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
farmmamba resolved HDFS-17609.
------------------------------
Resolution: Duplicate
> [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
> Labels: pull-request-available
>
> * 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.
> * BlockManagerSafeMode#leaveSafeMode: use GLOBAL mode rather than BM mode
> because it calls startSecretManagerIfNecessary which depended upon FS lock.
> Change to GLOBAL mode is safe here.
>
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]