Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.10.0
-
None
-
Unknown
Description
Using LazyStartProducer with multicast or recipientList (along with parallelism) can result in Exceptions. Using camel-kafka producer results in NullPointerException
The below route will result in NPE if kafka producer is marked as lazy start
from("direct:a")
.multicast().parallelProcessing()
.to("direct:b", "direct:c", "direct:d");
from("direct:b")
.to("kafka:topic1?lazyStartProducer=true");
from("direct:c")
.to("kafka:topic2?lazyStartProducer=true");
from("direct:d")
.to("kafka:topic3?lazyStartProducer=true");