Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Unknown
Description
Using the camel-master on a route like:
from("master:mylock:timer:clock") .log("Hello World!");
And a custom service like:
clusterService.getView("mylock").addEventListener((CamelClusterEventListener.Leadership) (view, leader) -> { LOG.info("The leader is {}", leader); });
produces an incorrect result as the route is not started, while the log is printed on the pod that becomes leader.
If I use a master route like "master:lock1:timer:clock" and use the view "lock2" in the custom service, everything works as expected.
Example here: https://github.com/nicolaferraro/camel-leader-election
Attachments
Issue Links
- duplicates
-
CAMEL-11900 cluster-service : only the first event listener is notified about cluster events
- Resolved