XComp commented on code in PR #22422:
URL: https://github.com/apache/flink/pull/22422#discussion_r1171487006
##########
flink-kubernetes/src/main/java/org/apache/flink/kubernetes/highavailability/KubernetesLeaderElectionDriver.java:
##########
@@ -195,12 +196,14 @@ private class LeaderCallbackHandlerImpl extends
KubernetesLeaderElector.LeaderCa
@Override
public void isLeader() {
- leaderElectionEventHandler.onGrantLeadership(UUID.randomUUID());
+ leaderElectionEventHandler.onGrantLeadershipAsync(
+ UUID.randomUUID(), Executors.newDirectExecutorService());
Review Comment:
Yes, good point. I'm gonna switch
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]