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

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

Hey [~ayushtkn], thanks for looking. A variable will cause compilation error. 
Enclosing type should use effectively final variables, therefore needs an 
object.
I checked failed tests locally. All pass except {{TestRedudantBlocks}}, which 
is failing without the patch as well.

> 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
>            Assignee: Konstantin Shvachko
>            Priority: Major
>         Attachments: HDFS-15076.001.patch
>
>
> 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