You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (JIRA)" <ji...@apache.org> on 2016/04/26 13:56:13 UTC

[jira] [Resolved] (FLINK-3810) Missing break in ZooKeeperLeaderElectionService#handleStateChange()

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

Till Rohrmann resolved FLINK-3810.
----------------------------------
    Resolution: Fixed

Fixed via 55a88a4bffd5f2ebdae48e5d96d4e9663f0cabdc

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