Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-1257

Race condition on FSNamesystem#recentInvalidateSets introduced by HADOOP-5124

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.0
    • Fix Version/s: 0.23.0, 1.0.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      HADOOP-5124 provided some improvements to FSNamesystem#recentInvalidateSets. But it introduced unprotected access to the data structure recentInvalidateSets. Specifically, FSNamesystem.computeInvalidateWork accesses recentInvalidateSets without read-lock protection. If there is concurrent activity (like reducing replication on a file) that adds to recentInvalidateSets, the name-node crashes with a ConcurrentModificationException.

      1. HDFS-1257.1.20110810.patch
        5 kB
        Eric Payne
      2. HDFS-1257.2.20110812.patch
        15 kB
        Eric Payne
      3. HDFS-1257.3.20110815.patch
        16 kB
        Eric Payne
      4. HDFS-1257.4.20110816.patch
        18 kB
        Eric Payne
      5. HDFS-1257.5.20110817.patch
        7 kB
        Eric Payne
      6. HDFS-1257.patch
        1.0 kB
        Ramkumar Vadali
      7. HDFS-1257-branch-0.20-security.patch
        1 kB
        Jitendra Nath Pandey

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Eric Payne
              Reporter:
              Ramkumar Vadali
            • Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development