[ 
https://issues.apache.org/jira/browse/HDFS-14880?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16957665#comment-16957665
 ] 

Vinayakumar B commented on HDFS-14880:
--------------------------------------

I don't think this will be an Incompatible change.

Line itself is not changed. Only when it appears is changed.

*The cluster is balanced. Exiting...* Before this message comes, there might be 
multiple messages about stats (with non-zero values)

So printing the same message with values as 0, should not be a problem.

 

Coming to patch, 

I think, you should print the message inside for loop based on return status.

> Balancer sequence of statistics & exit message is not correct
> -------------------------------------------------------------
>
>                 Key: HDFS-14880
>                 URL: https://issues.apache.org/jira/browse/HDFS-14880
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer & mover
>    Affects Versions: 3.1.1, 3.2.1
>         Environment: Run the balancer tool in cluster.
>            Reporter: Renukaprasad C
>            Assignee: Renukaprasad C
>            Priority: Major
>         Attachments: HDFS-14880.0001.patch
>
>
> Actual:
> Time Stamp Iteration# Bytes Already Moved Bytes Left To Move Bytes Being Moved
> The cluster is balanced. Exiting...
> Sep 27, 2019 5:13:15 PM   0   0 B                              0 B            
>               0 B
> Sep 27, 2019 5:13:15 PM Balancing took 1.726 seconds
> Done!
> Expected: Exit message should be after loggin all the balancer movement 
> statistics data.
> Time Stamp Iteration# Bytes Already Moved Bytes Left To Move Bytes Being Moved
> Sep 27, 2019 5:13:15 PM   0   0 B                              0 B            
>               0 B
> The cluster is balanced. Exiting...
> Sep 27, 2019 5:13:15 PM Balancing took 1.726 seconds
> Done!



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to