[ 
https://issues.apache.org/jira/browse/HDFS-863?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Ken Goodhope updated HDFS-863:
------------------------------

    Attachment: HDFS-863.patch

Added FSNameSystem.write{Lock|Unlock} arount the synchronized heartbeats.  
Added the same fix for TestHeartbeatHandling and TestNodeCount.

> Potential deadlock in TestOverReplicatedBlocks
> ----------------------------------------------
>
>                 Key: HDFS-863
>                 URL: https://issues.apache.org/jira/browse/HDFS-863
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: test
>            Reporter: Todd Lipcon
>             Fix For: 0.23.0
>
>         Attachments: cycle.png, HDFS-863.patch, TestNodeCount.png
>
>
> TestOverReplicatedBlocks.testProcesOverReplicateBlock synchronizes on 
> namesystem.heartbeats without synchronizing on namesystem first. Other places 
> in the code synchronize namesystem, then heartbeats. It's probably unlikely 
> to occur in this test case, but it's a simple fix.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to