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

CommitLogReplayException on Start Up

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Duplicate
    • 3.10
    • None
    • None
    • Normal

    Description

      Using cassandra 3.7 and executing the attached .cql schema change files, then restarting one of the cassandra nodes in a cluster, I get this traceback

      I had to change the 000_epoch.cql file slightly to remove some important pieces, apologies if that makes this more difficult to verify.

      ERROR [main] 2016-06-30 09:25:23,089 JVMStabilityInspector.java:82 - Exiting due to error while processing commit log during initialization.
      org.apache.cassandra.db.commitlog.CommitLogReplayer$CommitLogReplayException: Unexpected error deserializing mutation; saved to /tmp/mutation7038154871517187161dat.  This may be caused by replaying a mutation against a table with the same name but incompatible schema.  Exception follows: org.apache.cassandra.serializers.MarshalException: Not enough bytes to read 0th field java.nio.HeapByteBuffer[pos=0 lim=4 cap=4]
              at org.apache.cassandra.db.commitlog.CommitLogReplayer.handleReplayError(CommitLogReplayer.java:616) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLogReplayer.replayMutation(CommitLogReplayer.java:573) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLogReplayer.replaySyncSection(CommitLogReplayer.java:526) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:412) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:228) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:185) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:165) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:314) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:585) [apache-cassandra-3.7.0.jar:3.7.0]
              at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:714) [apache-cassandra-3.7.0.jar:3.7.0]
      

      Attachments

        1. 000_epoch.cql
          2 kB
          Tom Burdick
        2. mutation7038154871517187161dat
          0.4 kB
          Tom Burdick
        3. sane_distribution.cql
          0.1 kB
          Tom Burdick

        Issue Links

          Activity

            People

              jasonstack Zhao Yang
              thomas.burdick@gmail.com Tom Burdick
              Zhao Yang
              Votes:
              2 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: