Hadoop HDFS
  1. Hadoop HDFS
  2. HDFS-736

commitBlockSynchronization() should directly update block GS and length.

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major 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.

      1. commitBlockSync.patch
        4 kB
        Konstantin Shvachko

        Activity

        Konstantin Shvachko created issue -
        Konstantin Shvachko made changes -
        Field Original Value New Value
        Attachment commitBlockSync.patch [ 12423506 ]
        Konstantin Shvachko made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Konstantin Shvachko made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Hadoop Flags [Reviewed]
        Resolution Fixed [ 1 ]
        Tom White made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development