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.