[ 
https://issues.apache.org/jira/browse/CAMEL-23360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18078622#comment-18078622
 ] 

Aurélien Pupier commented on CAMEL-23360:
-----------------------------------------

Reproduced the deadlock locally with repeatedtest(50)

{noformat}
Found one Java-level deadlock:
=============================
"main":
  waiting for ownable synchronizer 0x0000000750404d30, (a 
java.util.concurrent.locks.ReentrantLock$NonfairSync),
  which is held by "Camel (camel-69) thread #48 - 
jpa://org.apache.camel.examples.MultiSteps"

"Camel (camel-69) thread #48 - jpa://org.apache.camel.examples.MultiSteps":
  waiting for ownable synchronizer 0x000000075041b518, (a 
java.util.concurrent.locks.ReentrantLock$NonfairSync),
  which is held by "main"

Java stack information for the threads listed above:
===================================================
"main":
        at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
        - parking to wait for  <0x0000000750404d30> (a 
java.util.concurrent.locks.ReentrantLock$NonfairSync)
        at 
java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:221)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.java:788)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.java:1024)
        at 
java.util.concurrent.locks.ReentrantLock$Sync.lock([email protected]/ReentrantLock.java:153)
        at 
java.util.concurrent.locks.ReentrantLock.lock([email protected]/ReentrantLock.java:322)
        at org.apache.openjpa.kernel.BrokerImpl.lock(BrokerImpl.java:4655)
        at 
org.apache.openjpa.kernel.BrokerImpl.beginOperation(BrokerImpl.java:2054)
        at org.apache.openjpa.kernel.BrokerImpl.isActive(BrokerImpl.java:2024)
        at 
org.apache.openjpa.kernel.StateManagerImpl.beforeAccessField(StateManagerImpl.java:1745)
        at 
org.apache.openjpa.kernel.StateManagerImpl.accessingField(StateManagerImpl.java:1679)
        at org.apache.camel.examples.MultiSteps.getId(MultiSteps.java)
        at org.apache.camel.examples.MultiSteps.toString(MultiSteps.java:99)
        at java.lang.String.valueOf([email protected]/String.java:4465)
        at 
org.apache.camel.component.jpa.JpaWithNamedQueryTest$4.doInTransaction(JpaWithNamedQueryTest.java:141)
        at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
        at 
org.apache.camel.component.jpa.JpaWithNamedQueryTest.testProducerInsertsIntoDatabaseThenConsumerFiresMessageExchange(JpaWithNamedQueryTest.java:116)
        at 
java.lang.invoke.LambdaForm$DMH/0x00007ff0202a0000.invokeVirtual([email protected]/LambdaForm$DMH)
        at 
java.lang.invoke.LambdaForm$MH/0x00007ff0202ac400.invoke([email protected]/LambdaForm$MH)
        at 
java.lang.invoke.Invokers$Holder.invokeExact_MT([email protected]/Invokers$Holder)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl([email protected]/DirectMethodHandleAccessor.java:153)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke([email protected]/DirectMethodHandleAccessor.java:103)
        at java.lang.reflect.Method.invoke([email protected]/Method.java:580)
        at 
org.junit.platform.commons.util.ReflectionUtils.invokeMethod(ReflectionUtils.java:701)
        at 
org.junit.platform.commons.support.ReflectionSupport.invokeMethod(ReflectionSupport.java:502)
        at 
org.junit.jupiter.engine.support.MethodReflectionUtils.invoke(MethodReflectionUtils.java:45)
        at 
org.junit.jupiter.engine.execution.MethodInvocation.proceed(MethodInvocation.java:61)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$ValidatingInvocation.proceed(InvocationInterceptorChain.java:124)
        at 
org.junit.jupiter.engine.extension.SameThreadTimeoutInvocation.proceed(SameThreadTimeoutInvocation.java:51)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.intercept(TimeoutExtension.java:163)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestableMethod(TimeoutExtension.java:148)
        at 
org.junit.jupiter.engine.extension.TimeoutExtension.interceptTestTemplateMethod(TimeoutExtension.java:94)
        at 
org.junit.jupiter.engine.descriptor.TestTemplateInvocationTestDescriptor$$Lambda/0x00007ff02067d7e8.apply(Unknown
 Source)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall.lambda$ofVoidMethod$0(InterceptingExecutableInvoker.java:123)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$ReflectiveInterceptorCall$$Lambda/0x00007ff0202a2d98.apply(Unknown
 Source)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.lambda$invoke$0(InterceptingExecutableInvoker.java:105)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker$$Lambda/0x00007ff0202a3480.apply(Unknown
 Source)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain$InterceptedInvocation.proceed(InvocationInterceptorChain.java:99)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.proceed(InvocationInterceptorChain.java:66)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.chainAndInvoke(InvocationInterceptorChain.java:47)
        at 
org.junit.jupiter.engine.execution.InvocationInterceptorChain.invoke(InvocationInterceptorChain.java:39)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:104)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invoke(InterceptingExecutableInvoker.java:98)
        at 
org.junit.jupiter.engine.execution.InterceptingExecutableInvoker.invokeVoid(InterceptingExecutableInvoker.java:71)
        at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.lambda$invokeTestMethod$0(TestMethodTestDescriptor.java:219)
        at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor$$Lambda/0x00007ff0203565c8.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.invokeTestMethod(TestMethodTestDescriptor.java:215)
        at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:157)
        at 
org.junit.jupiter.engine.descriptor.TestMethodTestDescriptor.execute(TestMethodTestDescriptor.java:70)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:176)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff0202053a8.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020205180.invoke(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020204d58.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:36)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:268)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$DefaultDynamicTestExecutor.execute(NodeTestTask.java:246)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor.execute(TemplateExecutor.java:96)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor.lambda$executeForProvider$1(TemplateExecutor.java:59)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor$$Lambda/0x00007ff02067da08.accept(Unknown
 Source)
        at java.util.Optional.ifPresent([email protected]/Optional.java:178)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor.lambda$executeForProvider$0(TemplateExecutor.java:59)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor$$Lambda/0x00007ff02067d000.accept(Unknown
 Source)
        at 
java.util.stream.ForEachOps$ForEachOp$OfRef.accept([email protected]/ForEachOps.java:184)
        at 
java.util.stream.ReferencePipeline$3$1.accept([email protected]/ReferencePipeline.java:197)
        at 
java.util.stream.IntPipeline$1$1.accept([email protected]/IntPipeline.java:180)
        at 
java.util.stream.Streams$RangeIntSpliterator.forEachRemaining([email protected]/Streams.java:104)
        at 
java.util.Spliterator$OfInt.forEachRemaining([email protected]/Spliterator.java:712)
        at 
java.util.stream.AbstractPipeline.copyInto([email protected]/AbstractPipeline.java:509)
        at 
java.util.stream.AbstractPipeline.wrapAndCopyInto([email protected]/AbstractPipeline.java:499)
        at 
java.util.stream.ForEachOps$ForEachOp.evaluateSequential([email protected]/ForEachOps.java:151)
        at 
java.util.stream.ForEachOps$ForEachOp$OfRef.evaluateSequential([email protected]/ForEachOps.java:174)
        at 
java.util.stream.AbstractPipeline.evaluate([email protected]/AbstractPipeline.java:234)
        at 
java.util.stream.ReferencePipeline.forEach([email protected]/ReferencePipeline.java:596)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor.executeForProvider(TemplateExecutor.java:57)
        at 
org.junit.jupiter.engine.descriptor.TemplateExecutor.execute(TemplateExecutor.java:46)
        at 
org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor.execute(TestTemplateTestDescriptor.java:112)
        at 
org.junit.jupiter.engine.descriptor.TestTemplateTestDescriptor.execute(TestTemplateTestDescriptor.java:40)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:176)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff0202053a8.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020205180.invoke(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020204d58.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService$$Lambda/0x00007ff020206350.accept(Unknown
 Source)
        at java.util.ArrayList.forEach([email protected]/ArrayList.java:1596)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff0202053a8.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020205180.invoke(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020204d58.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService$$Lambda/0x00007ff020206350.accept(Unknown
 Source)
        at java.util.ArrayList.forEach([email protected]/ArrayList.java:1596)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.invokeAll(SameThreadHierarchicalTestExecutorService.java:42)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$2(NodeTestTask.java:180)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff0202053a8.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$1(NodeTestTask.java:166)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020205180.invoke(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.Node.around(Node.java:138)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.lambda$executeRecursively$0(NodeTestTask.java:164)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask$$Lambda/0x00007ff020204d58.execute(Unknown
 Source)
        at 
org.junit.platform.engine.support.hierarchical.ThrowableCollector.execute(ThrowableCollector.java:74)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.executeRecursively(NodeTestTask.java:163)
        at 
org.junit.platform.engine.support.hierarchical.NodeTestTask.execute(NodeTestTask.java:116)
        at 
org.junit.platform.engine.support.hierarchical.SameThreadHierarchicalTestExecutorService.submit(SameThreadHierarchicalTestExecutorService.java:36)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestExecutor.execute(HierarchicalTestExecutor.java:52)
        at 
org.junit.platform.engine.support.hierarchical.HierarchicalTestEngine.execute(HierarchicalTestEngine.java:58)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.executeEngine(EngineExecutionOrchestrator.java:246)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.failOrExecuteEngine(EngineExecutionOrchestrator.java:218)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:179)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:108)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.lambda$execute$0(EngineExecutionOrchestrator.java:66)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator$$Lambda/0x00007ff0201b21d0.accept(Unknown
 Source)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.withInterceptedStreams(EngineExecutionOrchestrator.java:157)
        at 
org.junit.platform.launcher.core.EngineExecutionOrchestrator.execute(EngineExecutionOrchestrator.java:65)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:125)
        at 
org.junit.platform.launcher.core.DefaultLauncher.execute(DefaultLauncher.java:114)
        at 
org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:58)
        at 
org.junit.platform.launcher.core.InterceptingLauncher.lambda$execute$2(InterceptingLauncher.java:57)
        at 
org.junit.platform.launcher.core.InterceptingLauncher$$Lambda/0x00007ff0201b1b40.proceed(Unknown
 Source)
        at 
org.junit.platform.launcher.core.ClasspathAlignmentCheckingLauncherInterceptor.intercept(ClasspathAlignmentCheckingLauncherInterceptor.java:25)
        at 
org.junit.platform.launcher.core.InterceptingLauncher.execute(InterceptingLauncher.java:56)
        at 
org.junit.platform.launcher.core.DelegatingLauncher.execute(DelegatingLauncher.java:58)
        at 
java.lang.invoke.LambdaForm$DMH/0x00007ff020154400.invokeInterface([email protected]/LambdaForm$DMH)
        at 
java.lang.invoke.LambdaForm$MH/0x00007ff020094000.invoke([email protected]/LambdaForm$MH)
        at 
java.lang.invoke.Invokers$Holder.invokeExact_MT([email protected]/Invokers$Holder)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl([email protected]/DirectMethodHandleAccessor.java:154)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke([email protected]/DirectMethodHandleAccessor.java:103)
        at java.lang.reflect.Method.invoke([email protected]/Method.java:580)
        at 
org.apache.maven.surefire.api.util.ReflectionUtils.invokeMethodWithArray(ReflectionUtils.java:125)
        at 
org.apache.maven.surefire.junitplatform.LauncherAdapter.executeWithCancellationToken(LauncherAdapter.java:68)
        at 
org.apache.maven.surefire.junitplatform.LauncherAdapter.execute(LauncherAdapter.java:54)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.execute(JUnitPlatformProvider.java:203)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invokeAllTests(JUnitPlatformProvider.java:168)
        at 
org.apache.maven.surefire.junitplatform.JUnitPlatformProvider.invoke(JUnitPlatformProvider.java:136)
        at 
org.apache.maven.surefire.booter.ForkedBooter.runSuitesInProcess(ForkedBooter.java:385)
        at 
org.apache.maven.surefire.booter.ForkedBooter.execute(ForkedBooter.java:162)
        at 
org.apache.maven.surefire.booter.ForkedBooter.run(ForkedBooter.java:507)
        at 
org.apache.maven.surefire.booter.ForkedBooter.main(ForkedBooter.java:495)
"Camel (camel-69) thread #48 - jpa://org.apache.camel.examples.MultiSteps":
        at jdk.internal.misc.Unsafe.park([email protected]/Native Method)
        - parking to wait for  <0x000000075041b518> (a 
java.util.concurrent.locks.ReentrantLock$NonfairSync)
        at 
java.util.concurrent.locks.LockSupport.park([email protected]/LockSupport.java:221)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.java:788)
        at 
java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire([email protected]/AbstractQueuedSynchronizer.java:1024)
        at 
java.util.concurrent.locks.ReentrantLock$Sync.lock([email protected]/ReentrantLock.java:153)
        at 
java.util.concurrent.locks.ReentrantLock.lock([email protected]/ReentrantLock.java:322)
        at 
org.apache.openjpa.kernel.StateManagerImpl.lock(StateManagerImpl.java:3561)
        at 
org.apache.openjpa.kernel.StateManagerImpl.assignObjectId(StateManagerImpl.java:598)
        at 
org.apache.openjpa.kernel.StateManagerImpl.fetchObjectId(StateManagerImpl.java:1618)
        at 
org.apache.openjpa.kernel.DetachedStateManager.<init>(DetachedStateManager.java:87)
        at 
org.apache.openjpa.kernel.DetachManager.detachInternal(DetachManager.java:469)
        at 
org.apache.openjpa.kernel.DetachManager.detachAll(DetachManager.java:333)
        at 
org.apache.openjpa.kernel.BrokerImpl.detachAllInternal(BrokerImpl.java:3608)
        at org.apache.openjpa.kernel.BrokerImpl.detachAll(BrokerImpl.java:3571)
        at 
org.apache.openjpa.kernel.DelegatingBroker.detachAll(DelegatingBroker.java:1342)
        at 
org.apache.openjpa.persistence.EntityManagerImpl.clear(EntityManagerImpl.java:1436)
        at 
java.lang.invoke.LambdaForm$DMH/0x00007ff020154c00.invokeInterface([email protected]/LambdaForm$DMH)
        at 
java.lang.invoke.LambdaForm$MH/0x00007ff0202ac400.invoke([email protected]/LambdaForm$MH)
        at 
java.lang.invoke.Invokers$Holder.invokeExact_MT([email protected]/Invokers$Holder)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invokeImpl([email protected]/DirectMethodHandleAccessor.java:153)
        at 
jdk.internal.reflect.DirectMethodHandleAccessor.invoke([email protected]/DirectMethodHandleAccessor.java:103)
        at java.lang.reflect.Method.invoke([email protected]/Method.java:580)
        at 
org.springframework.orm.jpa.ExtendedEntityManagerCreator$ExtendedEntityManagerInvocationHandler.invoke(ExtendedEntityManagerCreator.java:362)
        at jdk.proxy2.$Proxy69.clear(jdk.proxy2/Unknown Source)
        at 
org.apache.camel.component.jpa.JpaConsumer.lambda$poll$0(JpaConsumer.java:158)
        at 
org.apache.camel.component.jpa.JpaConsumer$$Lambda/0x00007ff020654f40.run(Unknown
 Source)
        at 
org.apache.camel.component.jpa.DefaultTransactionStrategy.lambda$executeInTransaction$0(DefaultTransactionStrategy.java:47)
        at 
org.apache.camel.component.jpa.DefaultTransactionStrategy$$Lambda/0x00007ff020627c10.doInTransaction(Unknown
 Source)
        at 
org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)
        at 
org.apache.camel.component.jpa.DefaultTransactionStrategy.executeInTransaction(DefaultTransactionStrategy.java:46)
        at org.apache.camel.component.jpa.JpaConsumer.poll(JpaConsumer.java:109)
        at 
org.apache.camel.support.ScheduledPollConsumer.doRun(ScheduledPollConsumer.java:207)
        at 
org.apache.camel.support.ScheduledPollConsumer.run(ScheduledPollConsumer.java:118)
        at 
java.util.concurrent.Executors$RunnableAdapter.call([email protected]/Executors.java:572)
        at 
java.util.concurrent.FutureTask.runAndReset([email protected]/FutureTask.java:358)
        at 
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run([email protected]/ScheduledThreadPoolExecutor.java:305)
        at 
java.util.concurrent.ThreadPoolExecutor.runWorker([email protected]/ThreadPoolExecutor.java:1144)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run([email protected]/ThreadPoolExecutor.java:642)
        at java.lang.Thread.runWith([email protected]/Thread.java:1596)
        at java.lang.Thread.run([email protected]/Thread.java:1583)

Found 1 deadlock.

{noformat}

> Ci can be blocked on JPA tests
> ------------------------------
>
>                 Key: CAMEL-23360
>                 URL: https://issues.apache.org/jira/browse/CAMEL-23360
>             Project: Camel
>          Issue Type: Test
>          Components: camel-jpa
>    Affects Versions: 4.19.0
>            Reporter: Aurélien Pupier
>            Priority: Major
>         Attachments: image-2026-04-24-13-49-10-036.png, 
> image-2026-04-24-13-51-55-612.png, thread-dump-jpawithnamedquerytest-3.txt, 
> thread-dump-jpawithnamedquerytest-4.txt
>
>
>  !image-2026-04-24-13-49-10-036.png|thumbnail! 
> it was blocked for 5 hours.
> it is really weird that it can still happen as there should be a global 
> configuration for each tests now with  
> https://github.com/apache/camel/commit/81d5fd5b915a409e820f6c98798a885fb9949fbd
> {noformat}
> [INFO] Running 
> org.apache.camel.component.jpa.JpaWithNamedQueryAndParametersTest
> [INFO] Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 1.118 
> s -- in org.apache.camel.component.jpa.JpaWithNamedQueryAndParametersTest
> [INFO] Running org.apache.camel.component.jpa.JpaWithNamedQueryTest
> Cancelling nested steps due to timeout
> Sending interrupt signal to process
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to