[
https://issues.jboss.org/browse/WFLY-12304?page=com.atlassian.jira.plugin...
]
Flavia Rainone commented on WFLY-12304:
---------------------------------------
Fixing that caused a new code to be reached that wasn't reached before (because the
channel already handles FileRegion, but this code was unreachable because of the CCE).
That code seems to contain another bug:
{code}04:43:32,284 ERROR [org.apache.activemq.artemis.core.client] (Thread-1
(ActiveMQ-client-netty-threads)) AMQ214031: Failed to decode buffer, disconnect
immediately.: java.lang.IllegalStateException: java.lang.IndexOutOfBoundsException:
readerIndex(4) + length(1) exceeds writerIndex(4): PooledUnsafeDirectByteBuf(ridx: 4,
widx: 4, cap: 4)
at
org.apache.activemq.artemis@2.10.0//org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:390)
at
org.apache.activemq.artemis@2.10.0//org.apache.activemq.artemis.core.client.impl.ClientSessionFactoryImpl$DelegatingBufferHandler.bufferReceived(ClientSessionFactoryImpl.java:1191)
at
org.apache.activemq.artemis@2.10.0//org.apache.activemq.artemis.core.remoting.impl.netty.ActiveMQChannelHandler.channelRead(ActiveMQChannelHandler.java:73)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at
io.netty@4.1.34.Final//io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:323)
at
io.netty@4.1.34.Final//io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
at
io.netty@4.1.34.Final//io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:426)
at
io.netty@4.1.34.Final//io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:278)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:337)
at
io.netty@4.1.34.Final//io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1408)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:359)
at
io.netty@4.1.34.Final//io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:345)
at
io.netty@4.1.34.Final//io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:930)
at
io.netty@4.1.34.Final//io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:796)
at
io.netty@4.1.34.Final//io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:427)
at
io.netty@4.1.34.Final//io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:328)
at
io.netty@4.1.34.Final//io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:905)
at
org.apache.activemq.artemis.journal//org.apache.activemq.artemis.utils.ActiveMQThreadFactory$1.run(ActiveMQThreadFactory.java:118)
Caused by: java.lang.IndexOutOfBoundsException: readerIndex(4) + length(1) exceeds
writerIndex(4): PooledUnsafeDirectByteBuf(ridx: 4, widx: 4, cap: 4)
at
io.netty@4.1.34.Final//io.netty.buffer.AbstractByteBuf.checkReadableBytes0(AbstractByteBuf.java:1428)
at
io.netty@4.1.34.Final//io.netty.buffer.AbstractByteBuf.readByte(AbstractByteBuf.java:723)
at
io.netty@4.1.34.Final//io.netty.buffer.WrappedByteBuf.readByte(WrappedByteBuf.java:521)
at
org.apache.activemq.artemis.journal//org.apache.activemq.artemis.core.buffers.impl.ChannelBufferWrapper.readByte(ChannelBufferWrapper.java:280)
at
org.apache.activemq.artemis@2.10.0//org.apache.activemq.artemis.core.protocol.ServerPacketDecoder.decode(ServerPacketDecoder.java:124)
at
org.apache.activemq.artemis@2.10.0//org.apache.activemq.artemis.core.protocol.core.impl.RemotingConnectionImpl.bufferReceived(RemotingConnectionImpl.java:377)
... 21 more{code}
I'm still working on this.
Upgrade Apache Artemis from 2.9.0 to 2.10.0
-------------------------------------------
Key: WFLY-12304
URL:
https://issues.jboss.org/browse/WFLY-12304
Project: WildFly
Issue Type: Component Upgrade
Components: JMS
Reporter: Martin Stefanko
Assignee: Emmanuel Hugonnet
Priority: Blocker
Labels: blocker-WF18, downstream_dependency
Upgrade Apache Artemis from 2.9.0.Final to 2.10.0.Final.
Due to HA issue with Apache Artemis 2.10.0 this may not be the final version upgrade
--
This message was sent by Atlassian Jira
(v7.13.5#713005)