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

access time is set without holding FSNamesystem write lock

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.23.3, 2.0.3-alpha, 0.23.5
    • Fix Version/s: 2.3.0
    • Component/s: namenode
    • Labels:
      None
    • Target Version/s:
    • Hadoop Flags:
      Reviewed

      Description

      Incorrect condition in FSNamesystem.getBlockLocatoins() can lead to updating times without write lock. In most cases this condition will force FSNamesystem.getBlockLocatoins() to hold write lock, even if times do not need to be updated.

        Attachments

        1. HDFS-3981-trunk.patch
          1 kB
          Xiaobo Peng
        2. HDFS-3981-branch-2.patch
          1 kB
          Xiaobo Peng
        3. HDFS-3981-branch-0.23.patch
          1 kB
          Xiaobo Peng
        4. HDFS-3981-branch-0.23.4.patch
          1 kB
          Xiaobo Peng
        5. hdfs-3981.txt
          6 kB
          Todd Lipcon

          Activity

            People

            • Assignee:
              teledriver Xiaobo Peng
              Reporter:
              teledriver Xiaobo Peng
            • Votes:
              0 Vote for this issue
              Watchers:
              13 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: