You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@helix.apache.org by jx...@apache.org on 2018/10/25 23:12:56 UTC

[2/2] helix git commit: Fix mappingCalculator NPE

Fix mappingCalculator NPE


Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/d75d5fcd
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/d75d5fcd
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/d75d5fcd

Branch: refs/heads/master
Commit: d75d5fcdc9736a0023e8b98a1e55d802fbf4212b
Parents: 4a8e785
Author: Junkai Xue <jx...@linkedin.com>
Authored: Wed Aug 22 14:59:29 2018 -0700
Committer: Junkai Xue <jx...@linkedin.com>
Committed: Thu Oct 25 16:12:44 2018 -0700

----------------------------------------------------------------------
 .../apache/helix/controller/stages/task/TaskSchedulingStage.java    | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/d75d5fcd/helix-core/src/main/java/org/apache/helix/controller/stages/task/TaskSchedulingStage.java
----------------------------------------------------------------------
diff --git a/helix-core/src/main/java/org/apache/helix/controller/stages/task/TaskSchedulingStage.java b/helix-core/src/main/java/org/apache/helix/controller/stages/task/TaskSchedulingStage.java
index 86c6c32..cbb0160 100644
--- a/helix-core/src/main/java/org/apache/helix/controller/stages/task/TaskSchedulingStage.java
+++ b/helix-core/src/main/java/org/apache/helix/controller/stages/task/TaskSchedulingStage.java
@@ -134,6 +134,7 @@ public class TaskSchedulingStage extends AbstractBaseStage {
     } else {
       // Create dummy rebalancer for dropping existing current states
       rebalancer = new SemiAutoRebalancer();
+      mappingCalculator = new SemiAutoRebalancer();
     }
 
     if (rebalancer instanceof TaskRebalancer) {