[
https://issues.apache.org/jira/browse/CAMEL-25348?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18123839#comment-18123839
]
Guillaume Nodet commented on CAMEL-25348:
-----------------------------------------
This issue appears to have been already fixed on the main branch in commit
8d82d17f004fb706065dee0b18c75c1983089899.
The fix addressed three related root causes:
1. Non-awaited Netty shutdown in LumberjackServer.stop() - boss/worker/executor
group shutdownGracefully() calls were not synced, so the server port was not
fully released between tests.
2. Non-awaited channel close in LumberjackUtil - channel.close() and
eventLoopGroup.shutdownGracefully() were not awaited, causing half-open
connections and spurious ack count mismatches.
3. Awaitility timeout was too short - now explicitly set to 30 seconds to
handle CPU contention under -T1C parallel builds.
Please verify against the fix commit and close if confirmed.
_Note: This comment was generated by an AI coding agent and requires manual
verification._
> Fix flaky test LumberjackComponentTest
> --------------------------------------
>
> Key: CAMEL-25348
> URL: https://issues.apache.org/jira/browse/CAMEL-25348
> Project: Camel
> Issue Type: Test
> Components: camel-lumberjack
> Affects Versions: 4.23.0
> Reporter: Aurélien Pupier
> Priority: Major
>
> [failed 3 times and flaky 6 times in last 90
> days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P90D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*LumberjackComponentTest]
> note it seems sllghtly more flaky when running with full build and -T1C option
> {noformat}
> org.awaitility.core.ConditionTimeoutException: Condition with Lambda
> expression in org.apache.camel.component.lumberjack.LumberjackUtil was not
> fulfilled within 30 seconds.
> at
> org.awaitility.core.ConditionAwaiter.await(ConditionAwaiter.java:167)
> at
> org.awaitility.core.CallableCondition.await(CallableCondition.java:78)
> at
> org.awaitility.core.CallableCondition.await(CallableCondition.java:26)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1160)
> at
> org.awaitility.core.ConditionFactory.until(ConditionFactory.java:1129)
> at
> org.apache.camel.component.lumberjack.LumberjackUtil.sendMessages(LumberjackUtil.java:100)
>
> at
> org.apache.camel.component.lumberjack.LumberjackUtil.sendMessages(LumberjackUtil.java:51)
>
> at
> org.apache.camel.component.lumberjack.LumberjackComponentTest.shouldListenToMessages(LumberjackComponentTest.java:62)
> {noformat}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)