You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@helix.apache.org by GitBox <gi...@apache.org> on 2021/06/04 03:15:49 UTC
[GitHub] [helix] alirezazamani commented on a change in pull request #1769: Add management mode pipeline registry and switch logic
alirezazamani commented on a change in pull request #1769:
URL: https://github.com/apache/helix/pull/1769#discussion_r645261104
##########
File path: helix-core/src/main/java/org/apache/helix/controller/GenericHelixController.java
##########
@@ -628,18 +652,44 @@ private static PipelineRegistry createTaskRegistry(String pipelineName) {
}
}
+ private static PipelineRegistry createManagementModeRegistry(String pipelineName) {
+ logger.info("Creating management mode registry");
+ synchronized (GenericHelixController.class) {
+ // cluster data cache refresh
+ Pipeline dataRefresh = new Pipeline(pipelineName);
+ dataRefresh.addStage(new ReadClusterDataStage());
+
+ // cluster management mode process
+ Pipeline managementMode = new Pipeline(pipelineName);
+ managementMode.addStage(new ManagementModeStage());
+
+ PipelineRegistry registry = new PipelineRegistry();
+ Arrays.asList(
Review comment:
+1 Don't we need onController change event?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscribe@helix.apache.org
For additional commands, e-mail: reviews-help@helix.apache.org