hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tsz Wo (Nicholas), SZE (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HDFS-1748) Balancer utilization classification is incomplete
Date Sat, 12 Mar 2011 01:36:59 GMT

     [ https://issues.apache.org/jira/browse/HDFS-1748?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Tsz Wo (Nicholas), SZE updated HDFS-1748:
-----------------------------------------

       Resolution: Fixed
    Fix Version/s: 0.23.0
     Hadoop Flags: [Reviewed]
           Status: Resolved  (was: Patch Available)

I have committed this.  Thanks Suresh for the review.

> Balancer utilization classification is incomplete
> -------------------------------------------------
>
>                 Key: HDFS-1748
>                 URL: https://issues.apache.org/jira/browse/HDFS-1748
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: balancer
>            Reporter: Tsz Wo (Nicholas), SZE
>            Assignee: Tsz Wo (Nicholas), SZE
>             Fix For: 0.23.0
>
>         Attachments: h1748_20110310.patch
>
>
> {code}
> //Balancer.java
>   /* Return true if the given datanode is overUtilized */
>   private boolean isOverUtilized(BalancerDatanode datanode) {
>     return datanode.utilization > (avgUtilization+threshold);
>   }
>   
>   /* Return true if the given datanode is above average utilized
>    * but not overUtilized */
>   private boolean isAboveAvgUtilized(BalancerDatanode datanode) {
>     return (datanode.utilization <= (avgUtilization+threshold))
>         && (datanode.utilization > avgUtilization);
>   }
>   
>   /* Return true if the given datanode is underUtilized */
>   private boolean isUnderUtilized(BalancerDatanode datanode) {
>     return datanode.utilization < (avgUtilization-threshold);
>   }
>   /* Return true if the given datanode is below average utilized 
>    * but not underUtilized */
>   private boolean isBelowAvgUtilized(BalancerDatanode datanode) {
>         return (datanode.utilization >= (avgUtilization-threshold))
>                  && (datanode.utilization < avgUtilization);
>   }
> {code}
> Where is {{datanode.utilization == avgUtilization}}?

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message