Details
Description
We have a project where we use Hazelcast and Camel together. This setup works for majority of Camel routes, except a Camel route where we registered batch mode resequencer.
We use Hazelcast for active-passive deployment model. The aim is to have multiple containers running but only one of them to consume messages with a Camel route. When this leader container dies for any reason, one of the other containers in cluster will continue consuming messages seamlessly. Hazelcast provides this deployment model for us.
Hazelcast works with Camel route policies in order to provide this deployment model. It uses routes' doStop and doStart methods. Majority of routes and processors work except the batch resequencer processor.
I've identified a bug in this Resequencer.java file, an exception is thrown if the doStart method is called more than one times.
Here is a small project to reproduce the issue:
https://github.com/Tospaa/camel-hazelcast-bug-poc
The README file includes the Steps to Reproduce section.
Attachments
Issue Links
- links to