You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Yuki Morishita (JIRA)" <ji...@apache.org> on 2013/01/24 00:47:12 UTC

[jira] [Commented] (CASSANDRA-5147) NegativeArraySizeException thrown during repair

    [ https://issues.apache.org/jira/browse/CASSANDRA-5147?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13561239#comment-13561239 ] 

Yuki Morishita commented on CASSANDRA-5147:
-------------------------------------------

I think this is highly related to CASSANDRA-5105. In this case, column count was read from invalid position and the value was negative, which caused OpenBitSet to throw NegativeArraySizeException.
                
> NegativeArraySizeException thrown during repair
> -----------------------------------------------
>
>                 Key: CASSANDRA-5147
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5147
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>         Environment: Ubuntu 12.04
>            Reporter: Michael Kjellman
>            Priority: Critical
>
> {code}
> ERROR [Thread-51] 2013-01-10 23:54:36,718 CassandraDaemon.java (line 133) Exception in thread Thread[Thread-51,5,main]
> java.lang.NegativeArraySizeException
> 	at org.apache.cassandra.utils.obs.OpenBitSet.<init>(OpenBitSet.java:73)
> 	at org.apache.cassandra.utils.FilterFactory.createFilter(FilterFactory.java:143)
> 	at org.apache.cassandra.utils.FilterFactory.getFilter(FilterFactory.java:114)
> 	at org.apache.cassandra.utils.FilterFactory.getFilter(FilterFactory.java:101)
> 	at org.apache.cassandra.db.ColumnIndex.<init>(ColumnIndex.java:40)
> 	at org.apache.cassandra.db.ColumnIndex.<init>(ColumnIndex.java:31)
> 	at org.apache.cassandra.db.ColumnIndex$Builder.<init>(ColumnIndex.java:74)
> 	at org.apache.cassandra.io.sstable.SSTableWriter.appendFromStream(SSTableWriter.java:243)
> 	at org.apache.cassandra.streaming.IncomingStreamReader.streamIn(IncomingStreamReader.java:179)
> 	at org.apache.cassandra.streaming.IncomingStreamReader.read(IncomingStreamReader.java:122)
> 	at org.apache.cassandra.net.IncomingTcpConnection.stream(IncomingTcpConnection.java:226)
> 	at org.apache.cassandra.net.IncomingTcpConnection.handleStream(IncomingTcpConnection.java:166)
> 	at org.apache.cassandra.net.IncomingTcpConnection.run(IncomingTcpConnection.java:66)
> ERROR [Thread-52] 2013-01-10 23:54:36,718 CassandraDaemon.java (line 133) Exception in thread Thread[Thread-52,5,main]
> java.lang.RuntimeException: java.nio.channels.ClosedChannelException
> 	at com.google.common.base.Throwables.propagate(Throwables.java:160)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:32)
> 	at java.lang.Thread.run(Thread.java:722)
> Caused by: java.nio.channels.ClosedChannelException
> 	at sun.nio.ch.SocketChannelImpl.ensureReadOpen(SocketChannelImpl.java:236)
> 	at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:279)
> 	at sun.nio.ch.SocketAdaptor$SocketInputStream.read(SocketAdaptor.java:201)
> 	at sun.nio.ch.ChannelInputStream.read(ChannelInputStream.java:103)
> 	at org.apache.cassandra.streaming.compress.CompressedInputStream$Reader.runMayThrow(CompressedInputStream.java:151)
> 	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
> 	... 1 more
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira