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
commit 1d24aada0c6123fde87c56d9d65f8f4694268827 Author: LZD-PratyushBhatt <[email protected]> AuthorDate: Mon Jun 30 14:57:59 2025 +0530 Address review comments --- .../org/apache/helix/participant/DistClusterControllerStateModel.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/helix-core/src/main/java/org/apache/helix/participant/DistClusterControllerStateModel.java b/helix-core/src/main/java/org/apache/helix/participant/DistClusterControllerStateModel.java index 8710119d6..56120feea 100644 --- a/helix-core/src/main/java/org/apache/helix/participant/DistClusterControllerStateModel.java +++ b/helix-core/src/main/java/org/apache/helix/participant/DistClusterControllerStateModel.java @@ -37,7 +37,7 @@ import org.slf4j.LoggerFactory; @StateModelInfo(initialState = "OFFLINE", states = {"LEADER", "STANDBY"}) public class DistClusterControllerStateModel extends AbstractHelixLeaderStandbyStateModel { private static Logger logger = LoggerFactory.getLogger(DistClusterControllerStateModel.class); - protected Optional<HelixManager> _controllerOpt = Optional.empty(); + protected volatile Optional<HelixManager> _controllerOpt = Optional.empty(); private final Set<Pipeline.Type> _enabledPipelineTypes; // dedicated lock object to avoid cross-instance contention from Optional.empty() singleton
