Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9467

Fix data race accessing writeLockHeldTimeStamp in FSNamesystem

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.8.0
    • Fix Version/s: 2.8.0, 2.7.4, 3.0.0-alpha1
    • Component/s: namenode
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      This is a followup of HDFS-9145.

      Actually the value of writeLockInterval should be captured within the lock. The current code has a race on writeLockHeldTimeStamp. Thanks to Jing Zhao for reporting this.

        Attachments

        1. HDFS-9467.001.patch
          1 kB
          Mingliang Liu
        2. HDFS-9467.000.patch
          1 kB
          Mingliang Liu

          Issue Links

            Activity

              People

              • Assignee:
                liuml07 Mingliang Liu
                Reporter:
                liuml07 Mingliang Liu
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: