[
https://issues.apache.org/jira/browse/CAMEL-23360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18145495#comment-18145495
]
Guillaume Nodet commented on CAMEL-23360:
-----------------------------------------
This issue is being investigated by a coding agent (on behalf of gnodet).
Deadlock mechanism confirmed in JpaWithNamedQueryTest: the test thread and the
JPA consumer polling thread contend on OpenJPA internal BrokerImpl and
StateManagerImpl locks when the test reads entity fields via the same
EntityManager that the consumer is concurrently calling clear() on. The
existing workaround (CAMEL-23323, commit 81d5fd5b) only added a 10-minute
timeout - the deadlock root cause persists. Fix is single-PR scope: stop the
consumer before the final assertion block to prevent concurrent EntityManager
access.
_Note: This comment was generated by an AI coding agent and requires manual
verification._
> 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
> Assignee: Guillaume Nodet
> 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
(v10.3.26#10030026)