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

commitBlockSynchronization() should directly update block GS and length.

    Details

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

      Description

      FSNamesystem.commitBlockSynchronization() updates block's generation stamp and length by first removing the old block instance from blocksMap and then inserting the new instance back. This was necessary when GS was a part of the block key. After HDFS-512 the GS along with the block length can be updated directly in the blocksMap entry.

        Attachments

        1. commitBlockSync.patch
          4 kB
          Konstantin Shvachko

          Activity

            People

            • Assignee:
              shv Konstantin Shvachko
              Reporter:
              shv Konstantin Shvachko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: