File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
main/java/org/apache/fluss/server/coordinator
test/java/org/apache/fluss/server/testutils Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change 6565import org .apache .fluss .server .coordinator .event .NewTabletServerEvent ;
6666import org .apache .fluss .server .coordinator .event .NotifyKvSnapshotOffsetEvent ;
6767import org .apache .fluss .server .coordinator .event .NotifyLeaderAndIsrResponseReceivedEvent ;
68- import org .apache .fluss .server .coordinator .event .watcher .CoordinatorServerChangeWatcher ;
6968import org .apache .fluss .server .coordinator .event .SchemaChangeEvent ;
69+ import org .apache .fluss .server .coordinator .event .watcher .CoordinatorServerChangeWatcher ;
7070import org .apache .fluss .server .coordinator .event .watcher .TableChangeWatcher ;
7171import org .apache .fluss .server .coordinator .event .watcher .TabletServerChangeWatcher ;
7272import org .apache .fluss .server .coordinator .statemachine .ReplicaState ;
Original file line number Diff line number Diff line change @@ -869,6 +869,13 @@ public void waitUntilCoordinatorServerElected() {
869869 () -> zooKeeperClient .getCoordinatorLeaderAddress ().isPresent (),
870870 Duration .ofSeconds (10 ),
871871 "Fail to wait coordinator server elected" );
872+ // Sleep 1 second to make sure coordinator server has been started and event processor
873+ // started.
874+ try {
875+ Thread .sleep (1000 );
876+ } catch (InterruptedException e ) {
877+ throw new RuntimeException (e );
878+ }
872879 }
873880
874881 // --------------------------------------------------------------------------------------------
You can’t perform that action at this time.
0 commit comments