[
https://issues.apache.org/jira/browse/HDFS-14731?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Konstantin Shvachko updated HDFS-14731:
---------------------------------------
Assignee: Konstantin Shvachko
Status: Patch Available (was: Open)
Here is a rather small patch, which removes {{dirLock}} and gets rid of double
locking.
* I decided for now to not physically remove {{lock()}} and {{unlock()}}
methods from {{FSDirectory}} in order to avoid massive code changes. Just added
asserts, chyecking that the corresponding namesystem lock is held. This should
also help with debugging.
* Fixed most of the tests, which were failing due to not holding namesystem lock
* Added more asserts for locking
> [FGL] Remove redundant locking on NameNode.
> -------------------------------------------
>
> Key: HDFS-14731
> URL: https://issues.apache.org/jira/browse/HDFS-14731
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Components: namenode
> Reporter: Konstantin Shvachko
> Assignee: Konstantin Shvachko
> Priority: Major
> Attachments: HDFS-14731.001.patch
>
>
> Currently NameNode has two global locks: FSNamesystemLock and
> FSDirectoryLock. An analysis shows that single FSNamesystemLock is sufficient
> to guarantee consistency of the NameNode state. FSDirectoryLock can be
> removed.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]