cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David King (JIRA)" <>
Subject [jira] Commented: (CASSANDRA-1248) ArrayIndexOutOfBoundsException thrown when reading partially-written sstable
Date Mon, 05 Jul 2010 22:14:52 GMT


David King commented on CASSANDRA-1248:

I tried forcing the node to compact (by bringing it up listening only on localhost to keep
it from joining the other nodes, and telling it to compact), and it throws this exception:


 INFO 15:00:12,012 Deleted /cassandra/data/reddit/CommentVote-1015-Data.db
 INFO 15:00:12,314 Deleted /cassandra/data/system/HintsColumnFamily-1239-Data.db
 INFO 15:00:12,923 Deleted /cassandra/data/reddit/VotesByLink-1059-Data.db
 INFO 15:00:19,785 Deleted /cassandra/data/reddit/LinkVote-991-Data.db

ERROR 15:10:11,307 Skipping row DecoratedKey(15495971576493891752174312399692978238, ac5b905cb26978367a0a777c6fb7a9d1f2f162b4)
in /cassandra/data/permacache/permacache-45341-Data.db
        at org.apache.cassandra.db.ColumnSerializer.deserialize(
        at org.apache.cassandra.db.ColumnSerializer.deserialize(
        at org.apache.cassandra.db.ColumnFamilySerializer.deserializeColumns(
        at org.apache.cassandra.db.ColumnFamilySerializer.deserializeFromSSTable(
        at org.apache.cassandra.utils.ReducingIterator.computeNext(
        at org.apache.commons.collections.iterators.FilterIterator.setNextObject(
        at org.apache.commons.collections.iterators.FilterIterator.hasNext(
        at org.apache.cassandra.db.CompactionManager.doCompaction(
        at org.apache.cassandra.db.CompactionManager$
        at java.util.concurrent.FutureTask$Sync.innerRun(
        at java.util.concurrent.ThreadPoolExecutor.runWorker(
        at java.util.concurrent.ThreadPoolExecutor$

Telling it to compact again throws the same exception.

On the up-side, assuming there's only one corrupt file at least I know which one it is now.

> ArrayIndexOutOfBoundsException thrown when reading partially-written sstable
> ----------------------------------------------------------------------------
>                 Key: CASSANDRA-1248
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>         Environment: Cassandra 0.6.3
> java version "1.6.0_0"
> IcedTea6 1.3.1 (6b12-0ubuntu6.6) Runtime Environment (build 1.6.0_0-b12)
> OpenJDK 64-Bit Server VM (build 1.6.0_0-b12, mixed mode)
> Ubuntu 8.10
> 6 node cluster
> RF==3
>            Reporter: David King
>             Fix For: 0.8
> A node died by running out of disk space. After growing the volume, trying to execute
reads dies with:
> {quote}
> ERROR 11:02:51,957 Uncaught exception in thread Thread[ROW-READ-STAGE:10,5,main]
> java.lang.ArrayIndexOutOfBoundsException
>         at
>         at
>         at
>         at
>         at org.apache.cassandra.db.filter.SSTableSliceIterator$ColumnGroupReader.<init>(
>         at org.apache.cassandra.db.filter.SSTableSliceIterator.<init>(
>         at org.apache.cassandra.db.filter.SliceQueryFilter.getSSTableColumnIterator(
>         at org.apache.cassandra.db.ColumnFamilyStore.getTopLevelColumns(
>         at org.apache.cassandra.db.ColumnFamilyStore.cacheRow(
>         at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(
>         at org.apache.cassandra.db.ColumnFamilyStore.getColumnFamily(
>         at org.apache.cassandra.db.Table.getRow(
>         at org.apache.cassandra.db.SliceByNamesReadCommand.getRow(
>         at org.apache.cassandra.db.ReadVerbHandler.doVerb(
>         at
>         at java.util.concurrent.ThreadPoolExecutor.runWorker(
>         at java.util.concurrent.ThreadPoolExecutor$
>         at
> {quote}
> The clients then die with TimeoutExceptions.
> It might be better to return an exception to the client immediately instead of letting
them die, and it would be helpful if this exception were accompanied with a message indicating
*which* SStable is malformed. 
> This command does *not* turn up the failed table (nor does the same with sstablekeys):
> {quote}
> ri@pmc08:/cassandra/data$ for x in $(ls -t */*-Data.db); do ls -lh $x; /usr/local/cassandra/bin/sstable2json
$x > /dev/null; done
> {quote}

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message