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

Tsz Wo Nicholas Sze commented on HDFS-9871:
-------------------------------------------

The value -1 means that it is not applicable (or not calculated).  For SUCCESS, 
it is fine to put 0 to bytesBeingMoved.  However, for the exception cases, we 
should put -1 for both bytesLeftToMove and bytesBeingMoved.  I.e. the first 
patch is better than the second patch.  Thanks.

> "Bytes Being Moved" -ve(-1 B) when cluster was already balanced.
> ----------------------------------------------------------------
>
>                 Key: HDFS-9871
>                 URL: https://issues.apache.org/jira/browse/HDFS-9871
>             Project: Hadoop HDFS
>          Issue Type: Bug
>            Reporter: Brahma Reddy Battula
>            Assignee: Brahma Reddy Battula
>         Attachments: HDFS-9871-002.patch, HDFS-9871.patch
>
>
> Run balancer when there is no {{over}} and {{under}} utlized nodes.
> {noformat}
> 16/02/29 02:39:40 INFO net.NetworkTopology: Adding a new node: 
> /default-rack/**.120:50076
> 16/02/29 02:39:40 INFO net.NetworkTopology: Adding a new node: 
> /default-rack/**.121:50076
> 16/02/29 02:39:40 INFO net.NetworkTopology: Adding a new node: 
> /default-rack/**.122:50076
> 16/02/29 02:39:41 INFO balancer.Balancer: 0 over-utilized: []
> 16/02/29 02:39:41 INFO balancer.Balancer: 0 underutilized: []
> The cluster is balanced. Exiting...
> Feb 29, 2016 2:40:57 AM           0                  0 B                 0 B  
>              -1 B
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to