camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerald Benischke (JIRA)" <>
Subject [jira] [Commented] (CAMEL-8208) ZooKeeperRoutePolicy is not able to recover after session expiration
Date Fri, 16 Sep 2016 06:36:20 GMT


Gerald Benischke commented on CAMEL-8208:

Would a suitable workaround for this be to use something like:

        ZooKeeperRoutePolicy routePolicy = new ZooKeeperRoutePolicy(zookeeperUrl, 1);

                .log(LoggingLevel.INFO, "Not master")
            .log(LoggingLevel.INFO, "I am master");


> ZooKeeperRoutePolicy is not able to recover after session expiration
> --------------------------------------------------------------------
>                 Key: CAMEL-8208
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-zookeeper
>    Affects Versions: 2.13.2
>            Reporter: Leo Wang
>             Fix For: 2.19.0
> My company is using ZooKeeperRoutePolicy to maintain a Master/Slaver cluster. Sometimes
the cluster got network problem which make the app server disconnect from remote ZooKeeper
server. The disconnection usually don't last long but still long enough to expire the zookeeper
session of ZooKeeperRoutePolicy. By our observation, it seems ZooKeeperRoutePolicy would not
recovery and do re-election after session expiration which lead to multiple master situation.
> Is it possible to do enhancement or bug fixing on this?

This message was sent by Atlassian JIRA

View raw message