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

Konstantin Shvachko commented on HDFS-15076:
--------------------------------------------

There is a bunch of tests that don't hold any lock at all while calling e.g. 
{{fsdir.getINode()}} or {{fsdir.getINodesInPath()}}. We should eventually fix 
them as well, since they most likely contribute to non-deterministic runs of 
Jenkins builds. But this is not the goal of this jira. Targeting missing double 
locks only here.

> Fix tests that hold FSDirectory lock, without holding FSNamesystem lock.
> ------------------------------------------------------------------------
>
>                 Key: HDFS-15076
>                 URL: https://issues.apache.org/jira/browse/HDFS-15076
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Konstantin Shvachko
>            Priority: Major
>
> Three tests {{TestGetBlockLocations}}, {{TestFSNamesystem}}, 
> {{TestDiskspaceQuotaUpdate}} use {{FSDirectory}} methods, which hold 
> FSDirectory lock. They should also hold the global Namesystem lock.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
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