wardlican commented on code in PR #3950:
URL: https://github.com/apache/amoro/pull/3950#discussion_r3007274792
##########
amoro-optimizer/amoro-optimizer-common/src/main/java/org/apache/amoro/optimizer/common/OptimizerExecutor.java:
##########
@@ -49,6 +53,112 @@ public OptimizerExecutor(OptimizerConfig config, int
threadId) {
}
public void start() {
+ // Check if in master-slave mode (node manager initialised for either ZK
or DB HA)
+ boolean isMasterSlaveMode = getConfig().isMasterSlaveMode() &&
hasAmsNodeManager();
Review Comment:
After switching to the unified pattern shown above, this issue no longer
occurs.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]