Skip to content

Commit

Permalink
Add back the Helix workaround for missing IS change
Browse files Browse the repository at this point in the history
  • Loading branch information
Jackie-Jiang committed Dec 6, 2022
1 parent e6a9881 commit 86b87f7
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
import org.apache.helix.HelixManagerFactory;
import org.apache.helix.InstanceType;
import org.apache.helix.NotificationContext;
import org.apache.helix.model.ClusterConfig;
import org.apache.helix.model.HelixConfigScope;
import org.apache.helix.model.Message;
import org.apache.helix.model.ResourceConfig;
Expand Down Expand Up @@ -253,6 +254,10 @@ public void startController(Map<String, Object> properties)
case PINOT_ONLY:
_helixAdmin = _helixResourceManager.getHelixAdmin();
_propertyStore = _helixResourceManager.getPropertyStore();
// TODO: Enable periodic rebalance per 10 seconds as a temporary work-around for the Helix issue:
// https://github.com/apache/helix/issues/331 and https://github.com/apache/helix/issues/2309.
// Remove this after Helix fixing the issue.
configAccessor.set(scope, ClusterConfig.ClusterConfigProperty.REBALANCE_TIMER_PERIOD.name(), "10000");
break;
case HELIX_ONLY:
_helixAdmin = _helixManager.getClusterManagmentTool();
Expand Down

0 comments on commit 86b87f7

Please sign in to comment.