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

Cassandra crashes on restart with "IndexOutOfBoundsException: index (2) must be less than size (2)"

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Duplicate
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:

      Ubuntu 12.04 x64
      3 nodes, 1GB each

    • Severity:
      Normal

      Description

      All 3 nodes crash on restart with same error:

      INFO 13:31:05,272 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1376754824649.log
      INFO 13:31:05,272 Replaying /var/lib/cassandra/commitlog/CommitLog-2-1376754824650.log
      INFO 13:31:08,267 Finished reading /var/lib/cassandra/commitlog/CommitLog-2-1376754824650.log
      java.lang.IndexOutOfBoundsException: index (2) must be less than size (2)
      at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:305)
      at com.google.common.base.Preconditions.checkElementIndex(Preconditions.java:284)
      at com.google.common.collect.RegularImmutableList.get(RegularImmutableList.java:81)
      at org.apache.cassandra.db.marshal.CompositeType.getComparator(CompositeType.java:94)
      at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:76)
      at org.apache.cassandra.db.marshal.AbstractCompositeType.compare(AbstractCompositeType.java:31)
      at java.util.TreeMap.compare(TreeMap.java:1188)
      at java.util.TreeMap.put(TreeMap.java:531)
      at org.apache.cassandra.db.TreeMapBackedSortedColumns.addColumn(TreeMapBackedSortedColumns.java:102)
      at org.apache.cassandra.db.TreeMapBackedSortedColumns.addColumn(TreeMapBackedSortedColumns.java:88)
      at org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:114)
      at org.apache.cassandra.db.AbstractColumnContainer.addColumn(AbstractColumnContainer.java:109)
      at org.apache.cassandra.db.ColumnFamilySerializer.deserialize(ColumnFamilySerializer.java:101)
      at org.apache.cassandra.db.RowMutation$RowMutationSerializer.deserialize(RowMutation.java:376)
      at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:203)
      at org.apache.cassandra.db.commitlog.CommitLogReplayer.recover(CommitLogReplayer.java:98)
      at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:146)
      at org.apache.cassandra.db.commitlog.CommitLog.recover(CommitLog.java:126)
      at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:281)
      at org.apache.cassandra.service.CassandraDaemon.init(CassandraDaemon.java:358)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(Method.java:601)
      at org.apache.commons.daemon.support.DaemonLoader.load(DaemonLoader.java:212)
      Cannot load daemon
      Service exit with a return value of 3

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hymanroth David Semeria
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: