Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1207

0.20-append: stallReplicationWork should be volatile

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20-append
    • Fix Version/s: 0.20-append, 0.20.205.0
    • Component/s: namenode
    • Labels:
      None

      Description

      the stallReplicationWork member in FSNamesystem is accessed by multiple threads without synchronization, but isn't marked volatile. I believe this is responsible for about 1% failure rate on TestFileAppend4.testAppendSyncChecksum* on my 8-core test boxes (looking at logs I see replication happening even though we've supposedly disabled it)

      1. hdfs-1207.txt
        1 kB
        Todd Lipcon

        Activity

        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        1d 37m 1 dhruba borthakur 17/Jun/10 02:39
        Resolved Resolved Closed Closed
        488d 22h 46m 1 Matt Foley 19/Oct/11 01:26
        Matt Foley made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Hide
        Matt Foley added a comment -

        Closed upon release of 0.20.205.0

        Show
        Matt Foley added a comment - Closed upon release of 0.20.205.0
        Suresh Srinivas made changes -
        Fix Version/s 0.20.205.0 [ 12316392 ]
        Hide
        Suresh Srinivas added a comment -

        I applied the attached patch to 0.20-security.

        Show
        Suresh Srinivas added a comment - I applied the attached patch to 0.20-security.
        dhruba borthakur made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 0.20-append [ 12315103 ]
        Resolution Fixed [ 1 ]
        Hide
        dhruba borthakur added a comment -

        I just committed this. Thanks Todd!

        Show
        dhruba borthakur added a comment - I just committed this. Thanks Todd!
        Todd Lipcon made changes -
        Field Original Value New Value
        Attachment hdfs-1207.txt [ 12447286 ]
        Todd Lipcon created issue -

          People

          • Assignee:
            Todd Lipcon
            Reporter:
            Todd Lipcon
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development