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

Dave Brosius commented on CASSANDRA-3575:
-----------------------------------------

It seems odd to me that the generations structure is a hardcoded array of lists 
(size 8 --> Math.log10(1000 * 1000 * 1000 / maxSSTableSizeInMB)). Changing to 
List<List<SSTableReader>> would fix the problem one would think.
                
> java.lang.ArrayIndexOutOfBoundsException during scrub
> -----------------------------------------------------
>
>                 Key: CASSANDRA-3575
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-3575
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.3
>         Environment: Centos 5.7
> 16GB Ram
> 4GB Java Heap
> Sun JVM
>            Reporter: Tim McLennan
>
>  INFO [CompactionExecutor:6] 2011-12-05 22:19:28,788 CompactionManager.java 
> (line 477) Scrubbing 
> SSTableReader(path='/var/lib/cassandra/data/cf/Data-hb-256385-Data.db')
> ERROR [CompactionExecutor:6] 2011-12-05 22:19:30,195 
> AbstractCassandraDaemon.java (line 133) Fatal exception in thread 
> Thread[CompactionExecutor:6,1,RMI Runtime]
> java.lang.ArrayIndexOutOfBoundsException: 8
>         at 
> org.apache.cassandra.db.compaction.LeveledManifest.add(LeveledManifest.java:293)
>         at 
> org.apache.cassandra.db.compaction.LeveledManifest.promote(LeveledManifest.java:184)
>         at 
> org.apache.cassandra.db.compaction.LeveledCompactionStrategy.handleNotification(LeveledCompactionStrategy.java:141)
>         at 
> org.apache.cassandra.db.DataTracker.notifySSTablesChanged(DataTracker.java:481)
>         at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:275)
>         at 
> org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:232)
>         at 
> org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:979)
>         at 
> org.apache.cassandra.db.compaction.CompactionManager.scrubOne(CompactionManager.java:654)
>         at 
> org.apache.cassandra.db.compaction.CompactionManager.doScrub(CompactionManager.java:472)
>         at 
> org.apache.cassandra.db.compaction.CompactionManager.access$300(CompactionManager.java:63)
>         at 
> org.apache.cassandra.db.compaction.CompactionManager$3.call(CompactionManager.java:224)
>         at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>         at java.util.concurrent.FutureTask.run(Unknown Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>         at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>         at java.lang.Thread.run(Unknown Source)

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to