Details
-
Bug
-
Status: Closed
-
Blocker
-
Resolution: Fixed
-
0.15.0
-
None
-
None
Description
If the name-node receives a duplicate report of a written block from a data-node it does not insert
the block into the block map but mistakenly inserts it into the list of blocks belonging to the data-node,
placing it into the beginning of the list. Since the block is not removed from the list prior to the insertion,
the list itself becomes corrupted.
This patch fixes the problem. I also reorganized the add/removeNode and add/removeBlock methods
in order to avoid similar bugs in the future.