You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Romain Hardouin (JIRA)" <ji...@apache.org> on 2017/01/25 09:58:26 UTC

[jira] [Comment Edited] (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 edited comment on CASSANDRA-12156 at 1/25/17 9:57 AM:
----------------------------------------------------------------------

I encounter this issue every now and then on different 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?
Cassandra version: 2.1.16 / JVM: 1.8.0_91 


was (Author: rha):
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.MessageToMessageDecoder.channelRead(MessageToMessageDecoder.java:89) ~[netty-all-4.0.23.Final.jar:4.0.23.Final]
>         ... 18 common frames omitted
> {code}
> it didn't affect the application though but i haven't seen it before and seems like something is wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)