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

java.lang.RuntimeException: Last written key DecoratedKey >= current key DecoratedKey

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Urgent
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Severity:
      Critical

      Description

      Cassandra V: 2.0.14,

      Getting the following exceptions while trying to compact (I see this issue was raised in earlier versions and marked as closed. However it still appears in 2.0.14). In our case, compaction is not getting succeeded and keep failing with this error.:

      java.lang.RuntimeException: Last written key DecoratedKey(3462767860784856708, 354038323137333038305f3330325f31355f474d4543454f) >= current key DecoratedKey(3462334604624154281, 354036333036353334315f3336315f31355f474d4543454f) writing into 

      .......

      Stacktrace:

      	at org.apache.cassandra.io.sstable.SSTableWriter.beforeAppend(SSTableWriter.java:143)
      	at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:166)
      	at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:167)
      	at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28)
      	at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:60)
      	at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59)
      	at org.apache.cassandra.db.compaction.CompactionManager$BackgroundCompactionTask.run(CompactionManager.java:198)
      	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
      	at java.lang.Thread.run(Thread.java:745)

      Any help is greatly appreciated

        Attachments

        1. cassandra-system.log
          37 kB
          Dmitrii Saprykin

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                sgottipati srinivasu gottipati
              • Votes:
                0 Vote for this issue
                Watchers:
                16 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: