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

Simplify FSNamesystem#getBlockLocationsUpdateTimes

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Currently FSNamesystem#getBlockLocationsUpdateTimes holds the read lock to access the blocks. It releases the read lock and then acquires the write lock when it needs to update the access time of the INode.

      This jira proposes to move the responsibility of the latter steps to the caller to simplify the code.

        Attachments

        1. HDFS-7463.000.patch
          15 kB
          Haohui Mai
        2. HDFS-7463.001.patch
          15 kB
          Haohui Mai
        3. HDFS-7463.002.patch
          15 kB
          Haohui Mai
        4. HDFS-7463.003.patch
          15 kB
          Haohui Mai
        5. HDFS-7463.004.patch
          15 kB
          Haohui Mai
        6. HDFS-7463.005.patch
          16 kB
          Haohui Mai
        7. HDFS-7463.006.patch
          15 kB
          Haohui Mai
        8. HDFS-7463.007.patch
          15 kB
          Haohui Mai
        9. HDFS-7463.008.patch
          15 kB
          Haohui Mai
        10. HDFS-7463.008.patch
          15 kB
          Haohui Mai

          Issue Links

            Activity

              People

              • Assignee:
                wheat9 Haohui Mai
                Reporter:
                wheat9 Haohui Mai
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: