pulsar-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] massakam opened a new issue #2401: Consumer often discards received messages
Date Mon, 20 Aug 2018 09:23:06 GMT
massakam opened a new issue #2401: Consumer often discards received messages
URL: https://github.com/apache/incubator-pulsar/issues/2401
 
 
   When TLS is enabled, consumer often discards received messages. The following is the consumer
log when a message is discarded.
   
   ```
   17:53:52.113 [pulsar-client-io-1-1] ERROR o.a.pulsar.client.impl.ConsumerImpl - [persistent://xxx/xxx/xxx/xxx][xxx]
Discarding corrupted message at 242595:3896
   ```
   
   At this time, an IndexOutOfBoundsException has thrown at [this line](https://github.com/apache/incubator-pulsar/blob/v2.1.0-incubating/pulsar-client/src/main/java/org/apache/pulsar/client/impl/ConsumerImpl.java#L715).
   
   ```
   java.lang.IndexOutOfBoundsException: writerIndex: 1680879946 (expected: readerIndex(23)
<= writerIndex <= capacity(870))
           at io.netty.buffer.AbstractByteBuf.writerIndex(AbstractByteBuf.java:118) ~[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at org.apache.pulsar.common.api.Commands.parseMessageMetadata(Commands.java:271)
~[pulsar-common-2.1.0-incubating.jar:2.1.0-incubating]
           at org.apache.pulsar.client.impl.ConsumerImpl.messageReceived(ConsumerImpl.java:713)
~[pulsar-client-original-2.1.0-incubating.jar:2.1.0-incubating]
           at org.apache.pulsar.client.impl.ClientCnx.handleMessage(ClientCnx.java:275) [pulsar-client-original-2.1.0-incubating.jar:2.1.0-incubating]
           at org.apache.pulsar.common.api.PulsarDecoder.channelRead(PulsarDecoder.java:166)
[pulsar-common-2.1.0-incubating.jar:2.1.0-incubating]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:310)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.fireChannelRead(ByteToMessageDecoder.java:297)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:413)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:1389) [netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.ssl.SslHandler.decodeNonJdkCompatible(SslHandler.java:1171)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:1205) [netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.decodeRemovalReentryProtection(ByteToMessageDecoder.java:489)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:428)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:265)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:340)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.DefaultChannelPipeline$HeadContext.channelRead(DefaultChannelPipeline.java:1414)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:362)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:348)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:945)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.epoll.AbstractEpollStreamChannel$EpollStreamUnsafe.epollInReady(AbstractEpollStreamChannel.java:806)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:404)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:304) [netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.util.concurrent.SingleThreadEventExecutor$5.run(SingleThreadEventExecutor.java:886)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at io.netty.util.concurrent.FastThreadLocalRunnable.run(FastThreadLocalRunnable.java:30)
[netty-all-4.1.22.Final.jar:4.1.22.Final]
           at java.lang.Thread.run(Thread.java:748) [na:1.8.0_171]
   ```
   
   If receiving the discarded messages again by resetting the cursor, this error may not occur.
   When TLS is disabled, this phenomenon does not seem to occur.
   
   #### System configuration
   **Pulsar version**: 2.1.0-incubating
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

Mime
View raw message