[jira] [Commented] (CASSANDRA-12156) java.lang.ClassCastException During Write Operations
[ https://issues.apache.org/jira/browse/CASSANDRA-12156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15837492#comment-15837492 ] Romain Hardouin commented on CASSANDRA-12156: - I encounter this issue every now and then on different 2.1.16 clusters (one or two nodes at a time). Once a node starts to report these errors in logs the workaround is to restart Cassandra. I have currently a node which started to reporting these errors 3 days ago. 31 errors logged so far. Is there something I could do on this node to have a clue on what's happening? > java.lang.ClassCastException During Write Operations > > > Key: CASSANDRA-12156 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12156 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Centos 6.7, JDK1.8.0_72, Cassandra 3.0.7 >Reporter: vin01 >Priority: Minor > Fix For: 3.0.x > > > During a regular ETL process today suddenly i am getting some errors from > cassandra which look like :- > {code} > ERROR [SharedPool-Worker-28] 2016-07-09 00:07:04,062 Message.java:611 - > Unexpected exception during request; channel = [id: 0x7e101236, > /ip.add.re.ss:36421 => /ip.add.re.ss:9044] > io.netty.handler.codec.DecoderException: java.lang.ClassCastException: > java.lang.String cannot be cast to [B > at > io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:971) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:854) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:722) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:326) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:264) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72] > Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B > at > io.netty.buffer.PooledHeapByteBuf.array(PooledHeapByteBuf.java:280) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > org.apache.cassandra.transport.FrameCompressor$LZ4Compressor.decompress(FrameCompressor.java:191) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > org.apache.cassandra.transport.Frame$Decompressor.decode(Frame.java:310) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > org.apache.cassandra.transport.Frame$Decompressor.decode(Frame.java:289) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > io.netty.handler.codec.M
[jira] [Commented] (CASSANDRA-12156) java.lang.ClassCastException During Write Operations
[ https://issues.apache.org/jira/browse/CASSANDRA-12156?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15369023#comment-15369023 ] vin01 commented on CASSANDRA-12156: --- And followin this there were more errors like :- ERROR [SharedPool-Worker-14] 2016-07-09 00:09:23,547 Message.java:611 - Unexpected exception during request; channel = [id: 0x7e101236, /192.168.100.91:36421 => $ java.lang.ClassCastException: null no stack-trace for these was there. > java.lang.ClassCastException During Write Operations > > > Key: CASSANDRA-12156 > URL: https://issues.apache.org/jira/browse/CASSANDRA-12156 > Project: Cassandra > Issue Type: Bug > Components: Core > Environment: Centos 6.7, JDK1.8.0_72, Cassandra 3.0.7 >Reporter: vin01 > > During a regular ETL process today suddenly i am getting some errors from > cassandra which look like :- > ERROR [SharedPool-Worker-28] 2016-07-09 00:07:04,062 Message.java:611 - > Unexpected exception during request; channel = [id: 0x7e101236, > /ip.add.re.ss:36421 => /ip.add.re.ss:9044] > io.netty.handler.codec.DecoderException: java.lang.ClassCastException: > java.lang.String cannot be cast to [B > at > io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:99) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:163) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.handler.ssl.SslHandler.unwrap(SslHandler.java:971) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.handler.ssl.SslHandler.decode(SslHandler.java:854) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.callDecode(ByteToMessageDecoder.java:249) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.handler.codec.ByteToMessageDecoder.channelRead(ByteToMessageDecoder.java:149) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.invokeChannelRead(AbstractChannelHandlerContext.java:333) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.AbstractChannelHandlerContext.fireChannelRead(AbstractChannelHandlerContext.java:319) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.DefaultChannelPipeline.fireChannelRead(DefaultChannelPipeline.java:787) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.epoll.EpollSocketChannel$EpollSocketUnsafe.epollInReady(EpollSocketChannel.java:722) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.channel.epoll.EpollEventLoop.processReady(EpollEventLoop.java:326) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at io.netty.channel.epoll.EpollEventLoop.run(EpollEventLoop.java:264) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.util.concurrent.SingleThreadEventExecutor$2.run(SingleThreadEventExecutor.java:116) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:137) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at java.lang.Thread.run(Thread.java:745) [na:1.8.0_72] > Caused by: java.lang.ClassCastException: java.lang.String cannot be cast to [B > at > io.netty.buffer.PooledHeapByteBuf.array(PooledHeapByteBuf.java:280) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > at > org.apache.cassandra.transport.FrameCompressor$LZ4Compressor.decompress(FrameCompressor.java:191) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > org.apache.cassandra.transport.Frame$Decompressor.decode(Frame.java:310) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > org.apache.cassandra.transport.Frame$Decompressor.decode(Frame.java:289) > ~[apache-cassandra-3.0.7.jar:3.0.7] > at > io.netty.handler.codec.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) > ~[netty-all-4.0.23.Final.jar:4.0.23.Final] > ... 18 common frames omitted > it didn't affect the