You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by ji...@apache.org on 2019/11/04 20:38:32 UTC
[helix] branch wagedRebalancer updated: Fix formula incorrection in
the comment for measuring baseline divergence. (#559)
This is an automated email from the ASF dual-hosted git repository.
jiajunwang pushed a commit to branch wagedRebalancer
in repository https://gitbox.apache.org/repos/asf/helix.git
The following commit(s) were added to refs/heads/wagedRebalancer by this push:
new 56d071a Fix formula incorrection in the comment for measuring baseline divergence. (#559)
56d071a is described below
commit 56d071a846a6a5cfe442a45d200a5cf46e9d6d79
Author: Huizhi L <ih...@gmail.com>
AuthorDate: Mon Nov 4 12:38:25 2019 -0800
Fix formula incorrection in the comment for measuring baseline divergence. (#559)
Fix incorrect formula in the comment for measuring baseline divergence.
---
.../helix/controller/rebalancer/util/ResourceUsageCalculator.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/ResourceUsageCalculator.java b/helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/ResourceUsageCalculator.java
index becf72a..5f324a2 100644
--- a/helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/ResourceUsageCalculator.java
+++ b/helix-core/src/main/java/org/apache/helix/controller/rebalancer/util/ResourceUsageCalculator.java
@@ -82,7 +82,7 @@ public class ResourceUsageCalculator {
* }
* }
* }
- * baseline divergence = (matched: 1) / (doesn't match: 3) = 1/3 ~= 0.333
+ * baseline divergence = (matched: 1) / (total(matched + doesn't match): 3) = 1/3 ~= 0.333
* @param baseline baseline assignment
* @param bestPossibleAssignment best possible assignment
* @return double value range at [0.0, 1.0]