Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.0.0-alpha1, 3.0.0-beta1
-
Reviewed
-
erasurecode
Description
BlockIdManager.clear resets the block id generator for contiguous blocks but not for striped blocks:
void clear() { legacyGenerationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); generationStamp.setCurrentValue(GenerationStamp.LAST_RESERVED_STAMP); getBlockIdGenerator().setCurrentValue(SequentialBlockIdGenerator .LAST_RESERVED_BLOCK_ID); legacyGenerationStampLimit = HdfsConstants.GRANDFATHER_GENERATION_STAMP; }
This should have:
getBlockGroupIdGenerator().setCurrentValue(Long.MIN_VALUE);