File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed
fluss-server/src/main/java/org/apache/fluss/server/coordinator Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments