flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [flink] tillrohrmann commented on a change in pull request #15561: [FLINK-20695][ha] Clean up ha data for job if globally terminated
Date Tue, 11 May 2021 09:01:05 GMT

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:
users@infra.apache.org



Mime
View raw message