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

java.lang.ClassCastException: org.apache.cassandra.db.composites.CompoundComposite cannot be cast to org.apache.cassandra.db.composites.CellName

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Cannot Reproduce
    • 2.1 beta2
    • None
    • None
    • Normal

    Description

      When using nodetool upgradesstables (2.0.4 -> 2.1-beta) class cast exception occurs:

      ERROR [CompactionExecutor:7] 2014-02-19 21:34:16,839 CassandraDaemon.java:165 - Exception in thread Thread[CompactionExecutor:7,1,main]
      java.lang.ClassCastException: org.apache.cassandra.db.composites.CompoundComposite cannot be cast to org.apache.cassandra.db.composites.CellName
      at org.apache.cassandra.db.OnDiskAtom$Serializer.deserializeFromSSTable(OnDiskAtom.java:86) ~[main/:na]
      at org.apache.cassandra.db.Cell$1.computeNext(Cell.java:75) ~[main/:na]
      at org.apache.cassandra.db.Cell$1.computeNext(Cell.java:64) ~[main/:na]
      at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-16.0.jar:na]
      at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-16.0.jar:na]
      at org.apache.cassandra.io.sstable.SSTableIdentityIterator.hasNext(SSTableIdentityIterator.java:129) ~[main/:na]
      at org.apache.cassandra.utils.MergeIterator$OneToOne.computeNext(MergeIterator.java:200) ~[main/:na]
      at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-16.0.jar:na]
      at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-16.0.jar:na]
      at com.google.common.collect.Iterators$7.computeNext(Iterators.java:645) ~[guava-16.0.jar:na]
      at com.google.common.collect.AbstractIterator.tryToComputeNext(AbstractIterator.java:143) ~[guava-16.0.jar:na]
      at com.google.common.collect.AbstractIterator.hasNext(AbstractIterator.java:138) ~[guava-16.0.jar:na]
      at org.apache.cassandra.db.ColumnIndex$Builder.buildForCompaction(ColumnIndex.java:165) ~[main/:na]
      at org.apache.cassandra.db.compaction.LazilyCompactedRow.write(LazilyCompactedRow.java:110) ~[main/:na]
      at org.apache.cassandra.io.sstable.SSTableWriter.append(SSTableWriter.java:178) ~[main/:na]
      at org.apache.cassandra.db.compaction.CompactionTask.runWith(CompactionTask.java:172) ~[main/:na]
      at org.apache.cassandra.io.util.DiskAwareRunnable.runMayThrow(DiskAwareRunnable.java:48) ~[main/:na]
      at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
      at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:67) ~[main/:na]
      at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:64) ~[main/:na]
      at org.apache.cassandra.db.compaction.CompactionManager$4.perform(CompactionManager.java:262) ~[main/:na]
      at org.apache.cassandra.db.compaction.CompactionManager$2.call(CompactionManager.java:227) ~[main/:na]
      at java.util.concurrent.FutureTask.run(FutureTask.java:262) ~[na:1.7.0_45]
      at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145) ~[na:1.7.0_45]
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615) [na:1.7.0_45]
      at java.lang.Thread.run(Thread.java:744) [na:1.7.0_45]

      Attachments

        1. 6738.txt
          3 kB
          Sylvain Lebresne
        2. user_attribs.tar.gz
          3 kB
          Mateusz Gajewski

        Issue Links

          Activity

            People

              slebresne Sylvain Lebresne
              mateusz.gajewski Mateusz Gajewski
              Sylvain Lebresne
              Aleksey Yeschenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: