Skip to content

Commit 4451f9f

Browse files
committed
support coordinator epoch
1 parent 393d01a commit 4451f9f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

fluss-server/src/main/java/org/apache/fluss/server/coordinator/CoordinatorLeaderElection.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,7 @@ public void isLeader() {
7373
coordinatorContext.setCoordinatorEpochAndZkVersion(
7474
optionalEpoch.get(),
7575
coordinatorContext.getCoordinatorEpochZkVersion() + 1);
76+
initLeaderServices.run();
7677
} else {
7778
throw new CoordinatorEpochFencedException(
7879
"Fenced to become coordinator leader.");
@@ -99,8 +100,8 @@ public void notLeader() {
99100
// todo: Currently, we await the leader latch and do nothing until it becomes leader.
100101
// Later we can make it as a hot backup server to continuously synchronize metadata from
101102
// Zookeeper, which save time from initializing context
102-
leaderLatch.await();
103-
initLeaderServices.run();
103+
// leaderLatch.await();
104+
// initLeaderServices.run();
104105

105106
} catch (Exception e) {
106107
LOG.error("Failed to start LeaderLatch for server {}", serverId, e);

0 commit comments

Comments
 (0)