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

UnsupportedOperationException after upgrade to 3.0

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Cannot Reproduce
    • Fix Version/s: 3.0 beta 2
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      Upgrading from 2.2 HEAD to 3.0 HEAD triggers these exceptions:

      ERROR [HintedHandoff:1] 2015-08-18 12:34:02,193 CassandraDaemon.java:191 - Exception in thread Thread[HintedHandoff:1,1,main]
      java.lang.RuntimeException: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
              at org.apache.cassandra.db.HintedHandOffManager.compact(HintedHandOffManager.java:281) ~[main/:na]
              at org.apache.cassandra.db.HintedHandOffManager$5.run(HintedHandOffManager.java:535) ~[main/:na]
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[na:1.8.0_45]
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[na:1.8.0_45]
              at java.lang.Thread.run(Thread.java:745) ~[na:1.8.0_45]
      Caused by: java.util.concurrent.ExecutionException: java.lang.UnsupportedOperationException
              at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[na:1.8.0_45]
              at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[na:1.8.0_45]
              at org.apache.cassandra.db.HintedHandOffManager.compact(HintedHandOffManager.java:277) ~[main/:na]
              ... 4 common frames omitted
      Caused by: java.lang.UnsupportedOperationException: null
              at org.apache.cassandra.db.Serializers.clusteringPrefixSerializer(Serializers.java:52) ~[main/:na]
              at org.apache.cassandra.io.sstable.IndexHelper$IndexInfo$Serializer.deserialize(IndexHelper.java:171) ~[main/:na]
              at org.apache.cassandra.db.RowIndexEntry$Serializer.deserialize(RowIndexEntry.java:150) ~[main/:na]
              at org.apache.cassandra.io.sstable.format.big.BigTableScanner$KeyScanningIterator.computeNext(BigTableScanner.java:286) ~[main/:na]
              at org.apache.cassandra.io.sstable.format.big.BigTableScanner$KeyScanningIterator.computeNext(BigTableScanner.java:260) ~[main/:na]
              at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) ~[main/:na]
              at org.apache.cassandra.io.sstable.format.big.BigTableScanner.hasNext(BigTableScanner.java:240) ~[main/:na]
              at org.apache.cassandra.utils.MergeIterator$OneToOne.computeNext(MergeIterator.java:439) ~[main/:na]
              at org.apache.cassandra.utils.AbstractIterator.hasNext(AbstractIterator.java:47) ~[main/:na]
              at org.apache.cassandra.db.partitions.UnfilteredPartitionIterators$5.hasNext(UnfilteredPartitionIterators.java:234) ~[main/:na]
              at org.apache.cassandra.db.partitions.WrappingUnfilteredPartitionIterator.prepareNext(WrappingUnfilteredPartitionIterator.java:71) ~[main/:na]
              at org.apache.cassandra.db.partitions.WrappingUnfilteredPartitionIterator.hasNext(WrappingUnfilteredPartitionIterator.java:55) ~[main/:na]
              at org.apache.cassandra.db.partitions.PurgingPartitionIterator.hasNext(PurgingPartitionIterator.java:66) ~[main/:na]
              at org.apache.cassandra.db.compaction.CompactionIterator.hasNext(CompactionIterator.java:212) ~[main/:na]
              at org.apache.cassandra.db.compaction.CompactionTask.runMayThrow(CompactionTask.java:179) ~[main/:na]
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
              at org.apache.cassandra.db.compaction.CompactionTask.executeInternal(CompactionTask.java:80) ~[main/:na]
              at org.apache.cassandra.db.compaction.AbstractCompactionTask.execute(AbstractCompactionTask.java:59) ~[main/:na]
              at org.apache.cassandra.db.compaction.CompactionManager$9.runMayThrow(CompactionManager.java:638) ~[main/:na]
              at org.apache.cassandra.utils.WrappedRunnable.run(WrappedRunnable.java:28) ~[main/:na]
              at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_45]
              at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_45]
              ... 3 common frames omitted
      

      This occurs during a rolling upgrade where one node is on 3.0 and 2 nodes still remain on 2.2. Nodes are running java8.

        Attachments

        1. node3.log
          96 kB
          Russ Hatch
        2. node2.log
          182 kB
          Russ Hatch
        3. node1.log
          169 kB
          Russ Hatch

          Issue Links

            Activity

              People

              • Assignee:
                slebresne Sylvain Lebresne
                Reporter:
                rhatch Russ Hatch
                Authors:
                Sylvain Lebresne
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: