[
https://issues.apache.org/jira/browse/CAMEL-26468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-26468.
---------------------------------
Resolution: Fixed
Resolving: the cause of the hang was found and fixed in 4.24.0.
* The thread dump added in #28800 showed where it hangs: the test thread waits
forever in DefaultAsyncProcessorAwaitManager, in testInvokingAWrongServer (a
call to a port nothing listens on). CAMEL-26600 (#29339) changed that test to
use the synchronous producer.
* The cause: when the connection fails, the async cxf producer sometimes never
completed the exchange. CAMEL-26696 (#29450) changed CxfClientCallback so it
always completes the exchange exactly once (also in 4.22.3).
* What remains is in CXF itself: CXF-9272 (an async call to a refused
connection sometimes never calls the ClientCallback) is fixed in CXF 4.2.5,
which is not released yet. Until then testInvokingAWrongServerAsync stays
@Disabled. Turn it back on when Camel upgrades to CXF 4.2.5.
If CxfProducerRouterTest or CxfEndpointBeansRouterTest still hang on CI, please
open a new ticket with the thread dump.
_Claude Code on behalf of Claus Ibsen (davsclaus)_
> camel-cxf-soap - CxfProducerTest sometimes hangs on CI until the fork timeout
> -----------------------------------------------------------------------------
>
> Key: CAMEL-26468
> URL: https://issues.apache.org/jira/browse/CAMEL-26468
> Project: Camel
> Issue Type: Test
> Components: camel-cxf
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> The CxfProducerTest family in camel-cxf-soap (CxfProducerTest, and
> CxfProducerContextTest / CxfProducerOperationTest which extend it) sometimes
> hangs on CI. The module has a 300 s fork timeout
> (camel.surefire.forkTimeout), so the whole fork is killed with "There was a
> timeout in the fork" and the PR build fails.
> Seen in PR builds since 2026-10-24 (the test that never logged a result):
> * 2026-10-24: dependabot plugin-tools 3.16.0 (no unfinished class visible)
> * 2026-10-28: CAMEL-26364-mcp-docs-naming - CxfProducerContextTest
> * 2026-10-28: CAMEL-25259 dsl-extensions design - CxfProducerContextTest
> * 2026-10-31: PR #28652 (CAMEL-25231) - CxfProducerContextTest
> * 2026-11-01: PR #28788 (CAMEL-26436), twice - CxfProducerTest
> The other ~68 test classes in the module take about 33 s in total, so this is
> a hang, not a slow module. It predates PR #28676 (per-test ports, merged
> 2026-10-30).
> There is no thread dump, because surefire kills the fork. As a first step,
> give the CxfProducerTest tests and lifecycle methods a timeout in a separate
> thread and turn on JUnit's thread dump on timeout
> (junit.jupiter.execution.timeout.threaddump.enabled). A hang then fails only
> that test (surefire retries it), and the log shows where it is stuck, so the
> real cause can be fixed.
> _Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)