You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Chaitanya Gupta (JIRA)" <ji...@apache.org> on 2015/01/29 08:50:34 UTC

[jira] [Commented] (CASSANDRA-7118) Exception around IOException doesnt report file or table getting exception

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

Chaitanya Gupta commented on CASSANDRA-7118:
--------------------------------------------

I am not able to reproduce this on Cassandra 2.1. With corrupt SStable, I got following error which shows the Corrupt SStable name.

java.lang.RuntimeException: org.apache.cassandra.io.sstable.CorruptSSTableException: org.apache.cassandra.io.compress.CorruptBlockException: (/home/dlauser/datastax/cassandra-cassandra-2.1/build/test/cassandra/data/cg2/emp-da28df60a6e911e498535f9bdf20ef4a/cg2-emp-ka-1-Data.db): corruption detected, chunk at 0 of length 94.
        at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:2174) ~[main/:na]

[cg2 is the keyspace name, emp is the CF name]

> Exception around IOException doesnt report file or table getting exception
> --------------------------------------------------------------------------
>
>                 Key: CASSANDRA-7118
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-7118
>             Project: Cassandra
>          Issue Type: Improvement
>            Reporter: Laura Adney
>            Priority: Minor
>
> Saw this in Cassandra version: 1.2.11.2
> Run into several situations where an IOException indicates that corruption has occurred.  The exception does not provide the sstable or the table name making it very difficult to determine what files are involved.
> The request is to update the error/exception to include more relevant table/file information.
> Example Exception:
> ERROR [ReadStage:146665] 2014-02-25 06:28:18,286 CassandraDaemon.java (line 191) Exception in thread Thread[ReadStage:146665,5,main]
> java.lang.RuntimeException: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException
> 	at org.apache.cassandra.service.StorageProxy$DroppableRunnable.run(StorageProxy.java:1613)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> 	at java.lang.Thread.run(Thread.java:744)
> Caused by: org.apache.cassandra.io.sstable.CorruptSSTableException: java.io.EOFException
> Caused by: java.io.EOFException
> 	at java.io.RandomAccessFile.readFully(RandomAccessFile.java:446)
> 	at java.io.RandomAccessFile.readFully(RandomAccessFile.java:424)
> 	at org.apache.cassandra.io.util.RandomAccessReader.readBytes(RandomAccessReader.java:380)
> 	at org.apache.cassandra.utils.ByteBufferUtil.read(ByteBufferUtil.java:392)
> 	at org.apache.cassandra.utils.ByteBufferUtil.readWithLength(ByteBufferUtil.java:355)
> 	at org.apache.cassandra.db.ColumnSerializer.deserializeColumnBody(ColumnSerializer.java:94)
> 	at org.apache.cassandra.db.OnDiskAtom$Serializer.deserializeFromSSTable(OnDiskAtom.java:92)
> 	at org.apache.cassandra.db.OnDiskAtom$Serializer.deserializeFromSSTable(OnDiskAtom.java:73)
> 	at org.apache.cassandra.db.columniterator.IndexedSliceReader$SimpleBlockFetcher.<init>(IndexedSliceReader.java:477)
> 	at org.apache.cassandra.db.columniterator.IndexedSliceReader.<init>(IndexedSliceReader.java:94)



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