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

          Matt Foley made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          Jitendra Nath Pandey made changes -
          Fix Version/s 0.20.205.1 [ 12318243 ]
          Target Version/s 0.20.205.1, 0.23.0 [ 12318243, 12315571 ]
          Jitendra Nath Pandey made changes -
          Attachment HDFS-1257-branch-0.20-security.patch [ 12502832 ]
          Tsz Wo Nicholas Sze made changes -
          Link This issue is related to HDFS-2273 [ HDFS-2273 ]
          Tsz Wo Nicholas Sze made changes -
          Status Patch Available [ 10002 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Tsz Wo Nicholas Sze made changes -
          Hadoop Flags [Reviewed]
          Eric Payne made changes -
          Attachment HDFS-1257.5.20110817.patch [ 12490689 ]
          Eric Payne made changes -
          Attachment HDFS-1257.4.20110816.patch [ 12490600 ]
          Eric Payne made changes -
          Attachment HDFS-1257.3.20110815.patch [ 12490469 ]
          Eric Payne made changes -
          Attachment HDFS-1257.2.20110812.patch [ 12490289 ]
          Eric Payne made changes -
          Status Open [ 1 ] Patch Available [ 10002 ]
          Affects Version/s 0.23.0 [ 12315571 ]
          Fix Version/s 0.23.0 [ 12315571 ]
          Eric Payne made changes -
          Attachment HDFS-1257.1.20110810.patch [ 12490006 ]
          Matt Foley made changes -
          Summary Race condition introduced by HADOOP-5124 Race condition on FSNamesystem#recentInvalidateSets introduced by HADOOP-5124
          Eric Payne made changes -
          Assignee Eric Payne [ eepayne ]
          Todd Lipcon made changes -
          Link This issue relates to HADOOP-5124 [ HADOOP-5124 ]
          Ramkumar Vadali made changes -
          Field Original Value New Value
          Attachment HDFS-1257.patch [ 12449295 ]
          Ramkumar Vadali created 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