KarmaGYZ commented on code in PR #23415:
URL: https://github.com/apache/flink/pull/23415#discussion_r1349440740


##########
flink-runtime/src/main/java/org/apache/flink/runtime/leaderretrieval/ZooKeeperLeaderRetrievalDriver.java:
##########
@@ -122,6 +125,19 @@ public void close() throws Exception {
         
client.getConnectionStateListenable().removeListener(connectionStateListener);
 
         cache.close();
+
+        try {
+            if (client.getZookeeperClient().isConnected()
+                    && 
!connectionInformationPath.contains(RESOURCE_MANAGER_NODE)) {

Review Comment:
   I agree that this is a rather tricky fix. As Tison mentioned, JobMaster and 
Dispatcher will use the same curator framework at the JobManager side. Close 
the watch on resource manager when JobMaster exit will influence other 
JobMasters and Dispatcher, thus I arbitrarily exclude the RM here. We can also 
construct an exclusive curator framework for each JobMaster, but I think a 
cleaner solution should be implemented within curator or zookeeper, then we 
should remove this fix. WDYT?



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

Reply via email to