[
https://issues.apache.org/jira/browse/CAMEL-8208?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14268656#comment-14268656
]
Willem Jiang commented on CAMEL-8208:
-------------------------------------
Hi Leo,
Thanks for sharing the solution with us. I think it's enough to stop and
remove the selection route, you don't need to remove the endpoint and create
new producerTemplate. The missing part is how to listen the SessionExpired even
and call the reset method.
Please feel free to submit a patch or a pull request, I'd happy to help you
merge the patch into Apache Camel git repo.
Regards,
Willem
> ZooKeeperRoutePolicy is not able to recover after session expiration
> --------------------------------------------------------------------
>
> Key: CAMEL-8208
> URL: https://issues.apache.org/jira/browse/CAMEL-8208
> Project: Camel
> Issue Type: Bug
> Components: camel-zookeeper
> Affects Versions: 2.13.2
> Reporter: Leo Wang
>
> 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
(v6.3.4#6332)