Skip to content

Commit

Permalink
fix: taskmanager ha reconnect (#3668)
Browse files Browse the repository at this point in the history
  • Loading branch information
vagetablechicken authored Jan 8, 2024
1 parent cc46120 commit ebabc22
Show file tree
Hide file tree
Showing 4 changed files with 593 additions and 376 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,12 @@ public void start(Boolean blocking) throws ConfigException, IOException, Interru
logger.info("The server becomes active master and prepare to do business logic");
if (TaskManagerConfig.getTrackUnfinishedJobs()) {
// Start threads to track unfinished jobs
JobTrackerService.startTrackerThreads();
JobTrackerService.startTrackerThreads(); // may throw exception
}
// if blocking, start a bg thread to reconnect zk
if (blocking) {
failoverWatcher.startReconnectThread();
}

// Start brpc server
startRpcServer(blocking);
}
Expand Down
Loading

0 comments on commit ebabc22

Please sign in to comment.