HDFS-9871. "Bytes Being Moved" -ve(-1 B) when cluster was already balanced. (Contributed by Brahma Reddy Battulla)
This commit is contained in:
parent
0ef8bbfd87
commit
1f004b3367
@ -583,7 +583,7 @@ Result runOneIteration() {
|
|||||||
final long bytesLeftToMove = init(reports);
|
final long bytesLeftToMove = init(reports);
|
||||||
if (bytesLeftToMove == 0) {
|
if (bytesLeftToMove == 0) {
|
||||||
System.out.println("The cluster is balanced. Exiting...");
|
System.out.println("The cluster is balanced. Exiting...");
|
||||||
return newResult(ExitStatus.SUCCESS, bytesLeftToMove, -1);
|
return newResult(ExitStatus.SUCCESS, bytesLeftToMove, 0);
|
||||||
} else {
|
} else {
|
||||||
LOG.info( "Need to move "+ StringUtils.byteDesc(bytesLeftToMove)
|
LOG.info( "Need to move "+ StringUtils.byteDesc(bytesLeftToMove)
|
||||||
+ " to make the cluster balanced." );
|
+ " to make the cluster balanced." );
|
||||||
|
Loading…
Reference in New Issue
Block a user