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

Compaction errors: "Keys must be written in ascending order"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: 0.7.0 rc 1
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      When compaction starts, many of these exceptions are thrown:

      ERROR 16:53:00,252 non-fatal error during compaction
      java.io.IOException: Keys must be written in ascending order.
      at org.apache.cassandra.io.sstable.SSTableWriter.beforeAppend(SSTableWriter.java:134)
      at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:151)
      at org.apache.cassandra.db.CompactionManager.doCompaction(CompactionManager.java:279)
      at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:109)
      at org.apache.cassandra.db.CompactionManager$1.call(CompactionManager.java:87)
      at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
      at java.util.concurrent.FutureTask.run(FutureTask.java:166)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
      at java.lang.Thread.run(Thread.java:636)

      Easily reproduced with stress.py

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              brandon.williams Brandon Williams
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: