Skip to content

Commit

Permalink
fixup! [FLINK-19557] Trigger LeaderRetrievalListener notification upo…
Browse files Browse the repository at this point in the history
…n ZooKeeper reconnection in ZooKeeperLeaderRetrievalService
  • Loading branch information
tillrohrmann committed Oct 22, 2020
1 parent a606f61 commit cd48869
Showing 1 changed file with 2 additions and 0 deletions.
Expand Up @@ -18,6 +18,7 @@

package org.apache.flink.runtime.leaderretrieval;

import org.apache.flink.util.ExceptionUtils;
import org.apache.flink.util.FlinkException;
import org.apache.flink.util.Preconditions;

Expand Down Expand Up @@ -174,6 +175,7 @@ private void retrieveLeaderInformationFromZooKeeper() {
notifyIfNewLeaderAddress(leaderAddress, leaderSessionID);
} catch (Exception e) {
leaderListener.handleError(new Exception("Could not handle node changed event.", e));
ExceptionUtils.checkInterrupted(e);
}
} else {
LOG.debug("Ignoring node change notification since the service has already been stopped.");
Expand Down

0 comments on commit cd48869

Please sign in to comment.