Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-8887] Wait for JobMaster leader election in Dispatcher
Before sending requests from the Dispatcher to the JobMasters, the Dispatcher must wait until the respective JobMaster has gained leadership. Otherwise we might risk that the messages are ignored because no fencing token was set. This is solved by letting the JobManagerRunner expose a CompletableFuture<JobMasterGateway> which is only completed after the JobMaster has gained leadership. The future is cleared once the leadership is revoked. This closes #5767.
- Loading branch information
1 parent
e6b1d5c
commit c0dddc1
Showing
5 changed files
with
233 additions
and
172 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.