davsclaus opened a new pull request, #30864:
URL: https://github.com/apache/camel/pull/30864

   [CAMEL-27568](https://issues.apache.org/jira/browse/CAMEL-27568)
   
   
`NettyProducerStrayExceptionTest.testRequestTimeoutAfterExceptionOnUnusedChannel`
 (added in CAMEL-27334, #30627) fails now and then on CI with "the long 
greeting should fail in the decoder", also after the surefire retries (#29236, 
#30673).
   
   With `requestTimeout=1000` the pipeline has a `ReadTimeoutHandler` from the 
start, so the unused channel that `lazyChannelCreation=false` opens is closed 
after one second without reads. When the greeting of the test server comes 
later than that, as on a busy CI machine, the decoder never sees it. A 1.5 
second delay before the greeting reproduces it every time.
   
   The test now takes 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.
   
   Checked locally:
   - the test passes, and passes with the 1.5 second delay before the greeting 
too
   - with the CAMEL-27334 fix in `ClientChannelHandler` reverted, both 
stray-exception tests still fail, so the test still guards that fix
   - `camel-netty`: 190 tests, 0 failures
   
   _Claude Code on behalf of davsclaus_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to