WencongLiu commented on code in PR #22959:
URL: https://github.com/apache/flink/pull/22959#discussion_r1255417955
##########
flink-runtime/src/main/java/org/apache/flink/runtime/leaderelection/DefaultLeaderElection.java:
##########
@@ -56,4 +56,40 @@ public boolean hasLeadership(UUID leaderSessionId) {
public void close() throws Exception {
parentService.remove(contenderID);
}
+
+ /**
+ * {@link ParentService} is introduced to define the protocol between
{@link
+ * LeaderElectionService} and {@link LeaderElection}.
+ */
+ abstract static class ParentService {
Review Comment:
Done.
##########
flink-runtime/src/main/java/org/apache/flink/runtime/leaderelection/DefaultLeaderElection.java:
##########
@@ -56,4 +56,40 @@ public boolean hasLeadership(UUID leaderSessionId) {
public void close() throws Exception {
parentService.remove(contenderID);
}
+
+ /**
+ * {@link ParentService} is introduced to define the protocol between
{@link
Review Comment:
Done.
--
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]