cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sylvain Lebresne (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CASSANDRA-2994) OutOfBounds in CompressedSequentialWriter.flushData
Date Fri, 05 Aug 2011 08:58:27 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-2994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Sylvain Lebresne updated CASSANDRA-2994:
----------------------------------------

    Attachment: 2994.patch

A probable cause is that snappy doesn't seem to guarantee that the compressed output will
shorter or equal to the input (indeed, Snappy.maxCompressedLength(65536) == 76490).

Attaching fix for that. I don't see what else it can be actually, but I don't know how to
reproduce, so Stu, if you can reproduce and can check if this fixes it, that'd be cool.

> OutOfBounds in CompressedSequentialWriter.flushData
> ---------------------------------------------------
>
>                 Key: CASSANDRA-2994
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-2994
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Stu Hood
>            Assignee: Pavel Yaskevich
>             Fix For: 1.0
>
>         Attachments: 2994.patch
>
>
> Near the beginning of a wide row test with CASSANDRA-47 compression enabled on a counter
column family, I see the following exception:
> {code:java} WARN [CompactionExecutor:5] 2011-08-04 21:50:14,558 FileUtils.java (line
95) Failed closing org.apache.cassandra.io.compress.CompressedSequentialWriter@28f01347
> java.lang.IndexOutOfBoundsException
> 	at java.io.RandomAccessFile.writeBytes(Native Method)
> 	at java.io.RandomAccessFile.write(RandomAccessFile.java:466)
> 	at org.apache.cassandra.io.compress.CompressedSequentialWriter.flushData(CompressedSequentialWriter.java:88)
> 	at org.apache.cassandra.io.util.SequentialWriter.flushInternal(SequentialWriter.java:174)
> 	at org.apache.cassandra.io.util.SequentialWriter.syncInternal(SequentialWriter.java:150)
> 	at org.apache.cassandra.io.util.SequentialWriter.close(SequentialWriter.java:283)
> 	at org.apache.cassandra.io.compress.CompressedSequentialWriter.close(CompressedSequentialWriter.java:159)
> 	at org.apache.cassandra.io.util.FileUtils.closeQuietly(FileUtils.java:91)
> 	at org.apache.cassandra.io.sstable.SSTableWriter.cleanupIfNecessary(SSTableWriter.java:201)
> 	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:176)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:120)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:103)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> ERROR [CompactionExecutor:5] 2011-08-04 21:50:14,561 AbstractCassandraDaemon.java (line
146) Fatal exception in thread Thread[CompactionExecutor:5,1,main]
> java.lang.IndexOutOfBoundsException
> 	at java.io.RandomAccessFile.writeBytes(Native Method)
> 	at java.io.RandomAccessFile.write(RandomAccessFile.java:466)
> 	at org.apache.cassandra.io.compress.CompressedSequentialWriter.flushData(CompressedSequentialWriter.java:88)
> 	at org.apache.cassandra.io.util.SequentialWriter.flushInternal(SequentialWriter.java:174)
> 	at org.apache.cassandra.io.util.SequentialWriter.reBuffer(SequentialWriter.java:226)
> 	at org.apache.cassandra.io.util.SequentialWriter.writeAtMost(SequentialWriter.java:117)
> 	at org.apache.cassandra.io.util.SequentialWriter.write(SequentialWriter.java:101)
> 	at java.io.DataOutputStream.write(DataOutputStream.java:90)
> 	at org.apache.cassandra.db.compaction.PrecompactedRow.write(PrecompactedRow.java:105)
> 	at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:150)
> 	at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:153)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:120)
> 	at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:103)
> 	at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:138)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> 	at java.lang.Thread.run(Thread.java:662)
> {code}

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message