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/07/09 22:57:18 UTC
[3/4] helix git commit: Fix Partition level priority test fail
Fix Partition level priority test fail
Project: http://git-wip-us.apache.org/repos/asf/helix/repo
Commit: http://git-wip-us.apache.org/repos/asf/helix/commit/a979f352
Tree: http://git-wip-us.apache.org/repos/asf/helix/tree/a979f352
Diff: http://git-wip-us.apache.org/repos/asf/helix/diff/a979f352
Branch: refs/heads/master
Commit: a979f3522dd3f6fe7345829e960200f87e58f031
Parents: d18e779
Author: Junkai Xue <jx...@linkedin.com>
Authored: Thu May 24 16:53:44 2018 -0700
Committer: Junkai Xue <jx...@jxue-mn2.linkedin.biz>
Committed: Mon Jul 9 15:56:40 2018 -0700
----------------------------------------------------------------------
.../helix/controller/stages/TestStateTransitionPrirority.java | 2 +-
helix-core/src/test/resources/TestPartitionLevelPriority.json | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/helix/blob/a979f352/helix-core/src/test/java/org/apache/helix/controller/stages/TestStateTransitionPrirority.java
----------------------------------------------------------------------
diff --git a/helix-core/src/test/java/org/apache/helix/controller/stages/TestStateTransitionPrirority.java b/helix-core/src/test/java/org/apache/helix/controller/stages/TestStateTransitionPrirority.java
index 9bb5cf0..2abb3be 100644
--- a/helix-core/src/test/java/org/apache/helix/controller/stages/TestStateTransitionPrirority.java
+++ b/helix-core/src/test/java/org/apache/helix/controller/stages/TestStateTransitionPrirority.java
@@ -149,7 +149,7 @@ public class TestStateTransitionPrirority extends BaseStageTest {
// Add load rebalance throttle config
ClusterConfig clusterConfig = accessor.getProperty(accessor.keyBuilder().clusterConfig());
StateTransitionThrottleConfig throttleConfigForLoadRebalance =
- new StateTransitionThrottleConfig(StateTransitionThrottleConfig.RebalanceType.LOAD_BALANCE,
+ new StateTransitionThrottleConfig(StateTransitionThrottleConfig.RebalanceType.ANY,
StateTransitionThrottleConfig.ThrottleScope.CLUSTER, 1);
List<StateTransitionThrottleConfig> currentThrottleConfig =
clusterConfig.getStateTransitionThrottleConfigs();
http://git-wip-us.apache.org/repos/asf/helix/blob/a979f352/helix-core/src/test/resources/TestPartitionLevelPriority.json
----------------------------------------------------------------------
diff --git a/helix-core/src/test/resources/TestPartitionLevelPriority.json b/helix-core/src/test/resources/TestPartitionLevelPriority.json
index 1b299ee..974f985 100644
--- a/helix-core/src/test/resources/TestPartitionLevelPriority.json
+++ b/helix-core/src/test/resources/TestPartitionLevelPriority.json
@@ -77,8 +77,8 @@
"Partition_2",
"Partition_3",
"Partition_1",
- "Partition_4",
- "Partition_0"
+ "Partition_0",
+ "Partition_4"
]
},
{