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

INode access time is ignored because of race between open and rename

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 3.3.0, 2.8.6, 2.9.3, 3.1.4, 3.2.2, 2.10.1
    • None
    • None

    Description

      That's because in getBlockLocations there is a gap between readUnlock and re-fetch write lock (to update access time). If a rename operation occurs in the gap, the update of access time will be ignored. We can calculate new path from the inode and use the new path to update access time. 

      Attachments

        1. HDFS-13901.000.patch
          7 kB
          Jinglun
        2. HDFS-13901.001.patch
          7 kB
          Jinglun
        3. HDFS-13901.002.patch
          7 kB
          Jinglun
        4. HDFS-13901.003.patch
          8 kB
          Jinglun
        5. HDFS-13901.004.patch
          8 kB
          Jinglun
        6. HDFS-13901.005.patch
          9 kB
          Jinglun
        7. HDFS-13901.006.patch
          9 kB
          Jinglun
        8. HDFS-13901.007.patch
          9 kB
          Jinglun
        9. HDFS-13901.branch-2.001.patch
          9 kB
          Wei-Chiu Chuang
        10. HDFS-13901-branch-3.2.001.patch
          9 kB
          Jinglun

        Issue Links

          Activity

            People

              LiJinglun Jinglun
              LiJinglun Jinglun
              Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: