This is an automated email from the ASF dual-hosted git repository.

jxue pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git


The following commit(s) were added to refs/heads/master by this push:
     new 8d295620d Fix inconsistent statemodel
8d295620d is described below

commit 8d295620d3eddebdcfbede25f221c68f63dfe0d0
Author: Junkai Xue <[email protected]>
AuthorDate: Fri Aug 9 13:19:16 2024 -0700

    Fix inconsistent statemodel
---
 .../src/main/java/org/apache/helix/filestore/IntegrationTest.java       | 2 +-
 .../src/main/java/org/apache/helix/filestore/SetupCluster.java          | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
 
b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
index a68a5348b..579844abb 100644
--- 
a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
+++ 
b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/IntegrationTest.java
@@ -69,7 +69,7 @@ public class IntegrationTest {
       setup.addInstanceToCluster(clusterName, "localhost_12001");
       setup.addInstanceToCluster(clusterName, "localhost_12002");
       setup.addInstanceToCluster(clusterName, "localhost_12003");
-      setup.addResourceToCluster(clusterName, "repository", 1, "MasterSlave");
+      setup.addResourceToCluster(clusterName, "repository", 1, 
"OnlineOffline");
       setup.rebalanceResource(clusterName, "repository", 3);
       // Set the configuration
       final String instanceName1 = "localhost_12001";
diff --git 
a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/SetupCluster.java
 
b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/SetupCluster.java
index 5b8e736a9..4cd18ccc0 100644
--- 
a/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/SetupCluster.java
+++ 
b/recipes/rsync-replicated-file-system/src/main/java/org/apache/helix/filestore/SetupCluster.java
@@ -32,7 +32,7 @@ public class SetupCluster {
   public static final String DEFAULT_CLUSTER_NAME = "file-store-test";
   public static final String DEFAULT_RESOURCE_NAME = "repository";
   public static final int DEFAULT_PARTITION_NUMBER = 1;
-  public static final String DEFAULT_STATE_MODEL = "MasterSlave";
+  public static final String DEFAULT_STATE_MODEL = "OnlineOffline";
 
   public static void main(String[] args) {
     if (args.length < 2) {

Reply via email to