virajjasani commented on a change in pull request #2376:
URL: https://github.com/apache/hbase/pull/2376#discussion_r486791208



##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       I believe it's better to have this logic:
   ```
       if (costFunction.getMultiplier() > 0) {
         LOG.debug("Including cost function {}", 
costFunction.getClass().getSimpleName());
         costFunctions.add(costFunction);
       }
   ```

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Yeah, sounds better.

##########
File path: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/balancer/StochasticLoadBalancer.java
##########
@@ -596,6 +596,14 @@ protected void updateCostsWithAction(Cluster cluster, 
Action action) {
     }
   }
 
+  private void addCostFunction(CostFunction costFunction) {
+    if (costFunction.getMultiplier() <= 0) {
+      LOG.info("exclude cost function {}", 
costFunction.getClass().getSimpleName());

Review comment:
       Seems changes are incorporated here 
https://github.com/apache/hbase/pull/2386
   
   @ndimiduk @huaxiangsun 




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


Reply via email to