Rui Ventura created CAMEL-22533:
-----------------------------------
Summary: ConcurrentModificationException thrown in JMX-enabled
application using Split EIP w/ shared UoW
Key: CAMEL-22533
URL: https://issues.apache.org/jira/browse/CAMEL-22533
Project: Camel
Issue Type: Bug
Components: camel-core, camel-management
Affects Versions: 4.14.1
Environment: Reproduced in the following environment
* macOS 26 Tahoe
* OpenJDK 21
* Apache Camel 4.14.1
* Spring Boot 3.5.6
Can confirm, however, it is reproducible outside macOS and using a different
JDK as well.
Reporter: Rui Ventura
Attachments: cme.zip, stacktrace.txt
I've run into an issue in Camel 4.14 when using the Split EIP using parallel
processing and a shared unit of work. On top of that, I have JMX enabled,
and that's when the issue surfaces.
I drafted a simple route to reproduce the issue
{code:java}
from("direct:start")
.setBody(constant(Stream.iterate(1, i -> i + 1).limit(1000).toList()))
.split().body()
.shareUnitOfWork()
.parallelProcessing()
.log(LoggingLevel.INFO, log, "Number ${body}")
.end()
.log(LoggingLevel.INFO, log, "All done");
{code}
I've attached an MRE as well as the resulting exception stacktrace.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)