Description
We noticed that some times decommission DataNodes takes very long time, even exceeds 100 hours.
After check the code, I found that in BlockManager:computeReplicationWorkForBlocks(List<List<Block>> blocksToReplicate) it won't replicate blocks which belongs to under construction files, however in BlockManager:isReplicationInProgress(DatanodeDescriptor srcNode), if there is block need replicate no matter whether it belongs to under construction or not, the decommission progress will continue running.
That's the reason some time the decommission takes very long time.
Attachments
Attachments
Issue Links
- is duplicated by
-
HDFS-7306 can't decommission w/under construction blocks
- Resolved