[ 
https://issues.apache.org/jira/browse/FLINK-3810?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Chesnay Schepler reassigned FLINK-3810:
---------------------------------------

    Assignee: Chesnay Schepler

> Missing break in ZooKeeperLeaderElectionService#handleStateChange()
> -------------------------------------------------------------------
>
>                 Key: FLINK-3810
>                 URL: https://issues.apache.org/jira/browse/FLINK-3810
>             Project: Flink
>          Issue Type: Bug
>            Reporter: Ted Yu
>            Assignee: Chesnay Schepler
>
> {code}
>   protected void handleStateChange(ConnectionState newState) {
>     switch (newState) {
>       case CONNECTED:
>         LOG.debug("Connected to ZooKeeper quorum. Leader election can 
> start.");
>       case SUSPENDED:
>         LOG.warn("Connection to ZooKeeper suspended. The contender " + 
> leaderContender.getAddress()
>           + "no longer participates in the leader election.");
>       case RECONNECTED:
>         LOG.info("Connection to ZooKeeper was reconnected. Leader election 
> can be restarted.");
>       case LOST:
>         // Maybe we have to throw an exception here to terminate the 
> JobManager
>         LOG.warn("Connection to ZooKeeper lost. The contender " + 
> leaderContender.getAddress()
>           + "no longer participates in the leader election.");
> {code}
> Any of the first 3 states would result in multiple log output.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to