swuferhong commented on code in PR #3539:
URL: https://github.com/apache/fluss/pull/3539#discussion_r3528010012
##########
fluss-server/src/main/java/org/apache/fluss/server/coordinator/CoordinatorEventProcessor.java:
##########
@@ -262,6 +269,18 @@ public CoordinatorEventProcessor(
this.rebalanceManager =
new RebalanceManager(
this, zooKeeperClient, coordinatorEventManager,
SystemClock.getInstance());
+ this.offlineLeaderRetryIntervalMs =
+
conf.get(ConfigOptions.COORDINATOR_OFFLINE_LEADER_RETRY_INTERVAL).toMillis();
+ if (offlineLeaderRetryIntervalMs <= 0) {
+ throw new IllegalArgumentException(
+ String.format(
+ "%s must be positive, but was %d ms.",
+
ConfigOptions.COORDINATOR_OFFLINE_LEADER_RETRY_INTERVAL.key(),
+ offlineLeaderRetryIntervalMs));
+ }
+ this.offlineLeaderRetryScheduler =
+ Executors.newSingleThreadScheduledExecutor(
Review Comment:
Updated. This retry logic now reuses the shared coordinator scheduler, and I
added TODOs for the existing coordinator components that still own dedicated
lightweight schedulers so they can be migrated in follow-up PRs.
--
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]