Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-3306

Failed streaming may cause duplicate SSTable reference

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 1.1.7, 1.2.0 beta 2
    • None
    • None
    • Normal

    Description

      during stress testing, i always get this error making leveledcompaction strategy unusable. Should be easy to reproduce - just write fast.

      ERROR [CompactionExecutor:6] 2011-10-04 15:48:52,179 AbstractCassandraDaemon.java (line 133) Fatal exception in thread Thread[CompactionExecutor:6,5,main]
      java.lang.AssertionError
      at org.apache.cassandra.db.DataTracker$View.newSSTables(DataTracker.java:580)
      at org.apache.cassandra.db.DataTracker$View.replace(DataTracker.java:546)
      at org.apache.cassandra.db.DataTracker.replace(DataTracker.java:268)
      at org.apache.cassandra.db.DataTracker.replaceCompactedSSTables(DataTracker.java:232)
      at org.apache.cassandra.db.ColumnFamilyStore.replaceCompactedSSTables(ColumnFamilyStore.java:960)
      at org.apache.cassandra.db.compaction.CompactionTask.execute(CompactionTask.java:199)
      at org.apache.cassandra.db.compaction.LeveledCompactionTask.execute(LeveledCompactionTask.java:47)
      at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:131)
      at org.apache.cassandra.db.compaction.CompactionManager$1.call(CompactionManager.java:114)
      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)

      and this is in json data for table:

      {
      "generations" : [

      { "generation" : 0, "members" : [ 459, 460, 461, 462, 463, 464, 465, 466, 467, 468, 469, 470, 471, 472, 473, 474, 475, 476, 477, 478, 479, 480, 481, 482, 483, 484 ] }

      ,

      { "generation" : 1, "members" : [ ] }

      ,

      { "generation" : 2, "members" : [ ] }

      ,

      { "generation" : 3, "members" : [ ] }

      ,

      { "generation" : 4, "members" : [ ] }

      ,

      { "generation" : 5, "members" : [ ] }

      ,

      { "generation" : 6, "members" : [ ] }

      ,

      { "generation" : 7, "members" : [ ] }

      ]
      }

      Attachments

        Activity

          People

            yukim Yuki Morishita
            hsn Radim Kolar
            Yuki Morishita
            Sylvain Lebresne
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: