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

HDFS updates the modification time of a file when the file is closed.

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.20.1
    • 0.21.0
    • namenode
    • None
    • Reviewed

    Description

      Current HDFS updates the modification time of a file when the file is created. We would like to update the modification time of the file when the file is closed after being written to. This helps HDFS Raid to detect file changes more aggressively.

      Solution includes:
      1. Made changes to closeFile@/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java;
      2. Added unit test to testTimesAtClose@/org/apache/hadoop/hdfs/TestSetTimes.java.

      Attachments

        1. pathfile.txt
          4 kB
          Chun Zhang
        2. pathfile.txt
          4 kB
          Chun Zhang
        3. pathfile.txt
          7 kB
          Chun Zhang
        4. pathfile.txt
          17 kB
          Chun Zhang

        Activity

          People

            chunzhang Chun Zhang
            chunzhang Chun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 2h
                2h
                Remaining:
                Remaining Estimate - 2h
                2h
                Logged:
                Time Spent - Not Specified
                Not Specified