Aurélien Pupier created CAMEL-27880:
---------------------------------------
Summary: Fix flaky test NettyHttpSharedSecurityConfigurationTest
Key: CAMEL-27880
URL: https://issues.apache.org/jira/browse/CAMEL-27880
Project: Camel
Issue Type: Test
Components: camel-netty-http
Affects Versions: 4.25.0
Reporter: Aurélien Pupier
[failed 1 time and flaky 103 times in last 28
days|https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=camel&search.tags=main&search.timeZoneId=Europe%2FParis&tests.container=*NettyHttpSharedSecurityConfigurationTest]
{noformat}
org.apache.camel.CamelExecutionException: Exception occurred during execution
on the exchange: Exchange[]
at
org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:60)
at
org.apache.camel.support.ExchangeHelper.extractResultBody(ExchangeHelper.java:737)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:600)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:596)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.requestBodyAndHeader(DefaultProducerTemplate.java:438)
at
org.apache.camel.component.netty.http.NettyHttpSharedSecurityConfigurationTest.testAuthenticationEnforcement(NettyHttpSharedSecurityConfigurationTest.java:93)
Caused by: org.apache.camel.CamelExchangeException: No response received from
remote server: localhost:38419. Exchange[]
at
org.apache.camel.component.netty.handlers.ClientChannelHandler.channelInactive(ClientChannelHandler.java:150)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.handler.stream.ChunkedWriteHandler.channelInactive(ChunkedWriteHandler.java:165)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
at
io.netty.handler.codec.MessageAggregator.channelInactive(MessageAggregator.java:438)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:416)
at
io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:427)
at
io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:392)
at
io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:407)
at
io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:219)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1466)
at
io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:918)
at
io.netty.channel.AbstractChannel$AbstractUnsafe$6.run(AbstractChannel.java:677)
at
io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:148)
at
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:141)
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:535)
at
io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:229)
at
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1214)
at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:1583)
{noformat}
on rerun, same stack with another port:
{noformat}
org.apache.camel.CamelExecutionException: Exception occurred during execution
on the exchange: Exchange[]
at
org.apache.camel.CamelExecutionException.wrapCamelExecutionException(CamelExecutionException.java:60)
at
org.apache.camel.support.ExchangeHelper.extractResultBody(ExchangeHelper.java:737)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:600)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.extractResultBody(DefaultProducerTemplate.java:596)
at
org.apache.camel.impl.engine.DefaultProducerTemplate.requestBodyAndHeader(DefaultProducerTemplate.java:438)
at
org.apache.camel.component.netty.http.NettyHttpSharedSecurityConfigurationTest.testAuthenticationEnforcement(NettyHttpSharedSecurityConfigurationTest.java:93)
Caused by: org.apache.camel.CamelExchangeException: No response received from
remote server: localhost:39823. Exchange[]
at
org.apache.camel.component.netty.handlers.ClientChannelHandler.channelInactive(ClientChannelHandler.java:150)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.handler.stream.ChunkedWriteHandler.channelInactive(ChunkedWriteHandler.java:165)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.ChannelInboundHandlerAdapter.channelInactive(ChannelInboundHandlerAdapter.java:81)
at
io.netty.handler.codec.MessageAggregator.channelInactive(MessageAggregator.java:438)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.CombinedChannelDuplexHandler$DelegatingChannelHandlerContext.fireChannelInactive(CombinedChannelDuplexHandler.java:416)
at
io.netty.handler.codec.ByteToMessageDecoder.channelInputClosed(ByteToMessageDecoder.java:427)
at
io.netty.handler.codec.ByteToMessageDecoder.channelInactive(ByteToMessageDecoder.java:392)
at
io.netty.handler.codec.http.HttpClientCodec$Decoder.channelInactive(HttpClientCodec.java:407)
at
io.netty.channel.CombinedChannelDuplexHandler.channelInactive(CombinedChannelDuplexHandler.java:219)
at
io.netty.channel.AbstractChannelHandlerContext.fireChannelInactive(AbstractChannelHandlerContext.java:251)
at
io.netty.channel.DefaultChannelPipeline$HeadContext.channelInactive(DefaultChannelPipeline.java:1466)
at
io.netty.channel.DefaultChannelPipeline.fireChannelInactive(DefaultChannelPipeline.java:918)
at
io.netty.channel.AbstractChannel$AbstractUnsafe$6.run(AbstractChannel.java:677)
at
io.netty.util.concurrent.AbstractEventExecutor.runTask(AbstractEventExecutor.java:148)
at
io.netty.util.concurrent.AbstractEventExecutor.safeExecute(AbstractEventExecutor.java:141)
at
io.netty.util.concurrent.SingleThreadEventExecutor.runAllTasks(SingleThreadEventExecutor.java:535)
at
io.netty.channel.SingleThreadIoEventLoop.run(SingleThreadIoEventLoop.java:229)
at
io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:1214)
at
io.netty.util.internal.ThreadExecutorMap$2.run(ThreadExecutorMap.java:74)
at java.lang.Thread.run(Thread.java:1583)
{noformat}
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)