[
https://issues.apache.org/jira/browse/CAMEL-27568?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen reassigned CAMEL-27568:
-----------------------------------
Assignee: Claus Ibsen
> Fix flaky test NettyProducerStrayExceptionTest
> ----------------------------------------------
>
> Key: CAMEL-27568
> URL: https://issues.apache.org/jira/browse/CAMEL-27568
> Project: Camel
> Issue Type: Test
> Components: camel-netty
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Minor
> Fix For: 4.24.0
>
>
> NettyProducerStrayExceptionTest.testRequestTimeoutAfterExceptionOnUnusedChannel
> (added in CAMEL-27334) fails now and then on CI with "the long greeting
> should fail in the decoder", also after the surefire retries (seen on
> apache/camel#29236 and #30673).
> With requestTimeout=1000 the channel pipeline has a ReadTimeoutHandler from
> the start, so the unused channel that lazyChannelCreation=false opens is
> closed after 1 second without reads. On a busy machine the greeting of the
> test server can come after that, and the decoder never sees it. A delay of
> 1.5 seconds before the greeting reproduces it every time.
> The test can take the read timeout off the unused channel before the
> greeting: the pool adds a new one when the request borrows the channel
> (activateObject), so the request timeout is still tested, without depending
> on timing.
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)