This would allow us to detect whether missing blocks can be fixed using Raid and if that is the case exit safe mode earlier.
One way to make listCorruptFileBlocks available before the name node has exited from safe mode would be to perform a scan of the blocks map on each call to listCorruptFileBlocks to determine if there are any blocks with no replicas. This scan could be parallelized by dividing the space of block IDs into multiple intervals than can be scanned independently.
|Assignee||Patrick Kling [ pkling ]|
|Status||Open [ 1 ]||Patch Available [ 10002 ]|
|Fix Version/s||0.23.0 [ 12315571 ]|
|Affects Version/s||0.23.0 [ 12315571 ]|
|Component/s||name-node [ 12312926 ]|
|Resolution||Fixed [ 1 ]|
|Status||Patch Available [ 10002 ]||Resolved [ 5 ]|