Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
Reviewed
Description
When there are files not satisfying their storage policy and no move is possible, Mover exits with SUCCESS. It should exit with NO_MOVE_BLOCK.
The bug seems in the following code. When StorageTypeDiff is not empty and scheduleMoves4Block return false, it does not update hasRemaining. Also, there is no indication of "No block can be moved" for the entire iteration.
//Mover.processFile(..) if (!diff.removeOverlap(true)) { if (scheduleMoves4Block(diff, lb, ecSchema)) { hasRemaining |= (diff.existing.size() > 1 && diff.expected.size() > 1); } }
Attachments
Attachments
Issue Links
- relates to
-
HDFS-9151 Mover should print the exit status/reason on console like balancer tool.
- Resolved