tillrohrmann commented on a change in pull request #15561:
URL: https://github.com/apache/flink/pull/15561#discussion_r629984016



##########
File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/util/ZooKeeperUtils.java
##########
@@ -313,6 +314,15 @@ public static ZooKeeperLeaderElectionDriverFactory 
createLeaderElectionDriverFac
         return new ZooKeeperLeaderElectionDriverFactory(client, latchPath, 
leaderPath);
     }
 
+    public static List<String> getLeaderPathsForJob(
+            final Configuration configuration, final String pathSuffix) {
+        return Arrays.asList(
+                
configuration.getString(HighAvailabilityOptions.HA_ZOOKEEPER_LATCH_PATH)
+                        + pathSuffix,
+                
configuration.getString(HighAvailabilityOptions.HA_ZOOKEEPER_LEADER_PATH)
+                        + pathSuffix);

Review comment:
       I see, they are currently being taken care of by the 
`CompletedCheckpointStore` and the `CheckpointIDCounter` when they are being 
shut down.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to