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/17 18:41:38 UTC

helix git commit: [HELIX-734] Fix test configs for TestRecoveryLoadBalance

Repository: helix
Updated Branches:
  refs/heads/master 921d1fc98 -> 811222654


[HELIX-734] Fix test configs for TestRecoveryLoadBalance

There was a fix checked in for NumberOfErrorOrRecoveryPartitionThreshold in IntermediateStateCalcStage from less than equal to to strictly less than. Because of this, we need to change the config parameters (mostly from 1 to 0). There is no other underlying logic change.

Changelist:
1. Change config parameters appropriately in test case JSON files from 1 to 0


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

Branch: refs/heads/master
Commit: 811222654a255924edef768bf5d4000c6f146f1f
Parents: 921d1fc
Author: Hunter Lee <na...@gmail.com>
Authored: Mon Jul 16 15:43:55 2018 -0700
Committer: Hunter Lee <na...@gmail.com>
Committed: Tue Jul 17 11:41:09 2018 -0700

----------------------------------------------------------------------
 .../resources/TestRecoveryLoadBalance.MasterSlave.json  | 12 ++++++------
 .../TestRecoveryLoadBalance.OnlineOffline.json          |  8 ++++----
 2 files changed, 10 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/helix/blob/81122265/helix-core/src/test/resources/TestRecoveryLoadBalance.MasterSlave.json
----------------------------------------------------------------------
diff --git a/helix-core/src/test/resources/TestRecoveryLoadBalance.MasterSlave.json b/helix-core/src/test/resources/TestRecoveryLoadBalance.MasterSlave.json
index 0e79723..75e2631 100644
--- a/helix-core/src/test/resources/TestRecoveryLoadBalance.MasterSlave.json
+++ b/helix-core/src/test/resources/TestRecoveryLoadBalance.MasterSlave.json
@@ -1,7 +1,7 @@
 [
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -44,7 +44,7 @@
   },
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 2,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -87,7 +87,7 @@
   },
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -130,7 +130,7 @@
   },
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -173,7 +173,7 @@
   },
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -213,7 +213,7 @@
   },
   {
     "statemodel": "MasterSlave",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {

http://git-wip-us.apache.org/repos/asf/helix/blob/81122265/helix-core/src/test/resources/TestRecoveryLoadBalance.OnlineOffline.json
----------------------------------------------------------------------
diff --git a/helix-core/src/test/resources/TestRecoveryLoadBalance.OnlineOffline.json b/helix-core/src/test/resources/TestRecoveryLoadBalance.OnlineOffline.json
index d4677be..389d90e 100644
--- a/helix-core/src/test/resources/TestRecoveryLoadBalance.OnlineOffline.json
+++ b/helix-core/src/test/resources/TestRecoveryLoadBalance.OnlineOffline.json
@@ -1,7 +1,7 @@
 [
   {
     "statemodel": "OnlineOffline",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -42,7 +42,7 @@
   },
   {
     "statemodel": "OnlineOffline",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -127,7 +127,7 @@
   },
   {
     "statemodel": "OnlineOffline",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {
@@ -167,7 +167,7 @@
   },
   {
     "statemodel": "OnlineOffline",
-    "errorOrRecoveryPartitionThresholdForLoadBalance": 1,
+    "errorOrRecoveryPartitionThresholdForLoadBalance": 0,
     "inputs": {
       "resource_0_0": {
         "currentStates": {