[
https://issues.apache.org/jira/browse/HDFS-17388?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17820584#comment-17820584
]
ASF GitHub Bot commented on HDFS-17388:
---------------------------------------
ZanderXu opened a new pull request, #6589:
URL: https://github.com/apache/hadoop/pull/6589
HDFS-17388. [FGL] Create RPC supports this fine-grained locking I.
Replacing the global FSN lock with fine-grained locks for the Create RPC.
> [FGL] Create RPC supports this fine-grained locking I
> -----------------------------------------------------
>
> Key: HDFS-17388
> URL: https://issues.apache.org/jira/browse/HDFS-17388
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Reporter: ZanderXu
> Assignee: ZanderXu
> Priority: Major
>
> The create RPC just involves directory tree if it creates a new file, and
> most scenes are like this. It involves blocks only if the file is existing
> and it tries to overwrite it.
> So in most scenarios, the create RPC just needs FS lock.
> The current implementation just holds the global write lock, so in order for
> the improvement to be better accepted, the first step is just to replace the
> lock mode without changing logic. We can minimize the scope of the global BM
> lock in the second step.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]