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

Race condition on FSNamesystem#recentInvalidateSets introduced by HADOOP-5124

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.23.0
    • 0.23.0, 1.0.0
    • namenode
    • None
    • 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.

      Attachments

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

        Issue Links

          Activity

            People

              epayne Eric Payne
              rvadali Ramkumar Vadali
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: