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

cleanup ClassCastException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.0.4
    • Legacy/Tools
    • Windows 7 / Java 1.7.0.25

    • Normal

    Description

      I enlarged the cluseter from 4 to 8 nodes. During cleaning up the "old" nodes with "nodetool cleanup" it breaks up with exception. I started cleanup from a different computer to manage them sequentially.

      cmd.exe

      Error occurred during cleanup
      java.util.concurrent.ExecutionException: java.lang.ClassCastException: org.apach
      e.cassandra.io.sstable.SSTableReader$EmptyCompactionScanner cannot be cast to or
      g.apache.cassandra.io.sstable.SSTableScanner
      at java.util.concurrent.FutureTask.report(Unknown Source)
      at java.util.concurrent.FutureTask.get(Unknown Source)
      at org.apache.cassandra.db.compaction.CompactionManager.performAllSSTabl
      eOperation(CompactionManager.java:227)
      at org.apache.cassandra.db.compaction.CompactionManager.performCleanup(C
      ompactionManager.java:265)
      at org.apache.cassandra.db.ColumnFamilyStore.forceCleanup(ColumnFamilySt
      ore.java:1054)
      at org.apache.cassandra.service.StorageService.forceKeyspaceCleanup(Stor
      ageService.java:2038)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.reflect.misc.Trampoline.invoke(Unknown Source)
      at sun.reflect.GeneratedMethodAccessor5.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.reflect.misc.MethodUtil.invoke(Unknown Source)
      at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown So
      urce)
      at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(Unknown So
      urce)
      at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(Unknown Source)
      at com.sun.jmx.mbeanserver.PerInterface.invoke(Unknown Source)
      at com.sun.jmx.mbeanserver.MBeanSupport.invoke(Unknown Source)
      at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(Unknown
      Source)
      at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(Unknown Source)
      at javax.management.remote.rmi.RMIConnectionImpl.doOperation(Unknown Sou
      rce)
      at javax.management.remote.rmi.RMIConnectionImpl.access$300(Unknown Sour
      ce)
      at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run
      (Unknown Source)
      at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(U
      nknown Source)
      at javax.management.remote.rmi.RMIConnectionImpl.invoke(Unknown Source)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at sun.rmi.transport.Transport$1.run(Unknown Source)
      at java.security.AccessController.doPrivileged(Native Method)
      at sun.rmi.transport.Transport.serviceCall(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Source)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(Unknown Sou
      rce)
      at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unknown Sour
      ce)
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
      at java.lang.Thread.run(Unknown Source)
      Caused by: java.lang.ClassCastException: org.apache.cassandra.io.sstable.SSTable
      Reader$EmptyCompactionScanner cannot be cast to org.apache.cassandra.io.sstable.
      SSTableScanner
      at org.apache.cassandra.db.compaction.CompactionManager.doCleanupCompact
      ion(CompactionManager.java:563)
      at org.apache.cassandra.db.compaction.CompactionManager.access$400(Compa
      ctionManager.java:62)
      at org.apache.cassandra.db.compaction.CompactionManager$5.perform(Compac
      tionManager.java:274)
      at org.apache.cassandra.db.compaction.CompactionManager$2.call(Compactio
      nManager.java:222)
      at java.util.concurrent.FutureTask.run(Unknown Source)
      ... 3 more

      Attachments

        Activity

          People

            jbellis Jonathan Ellis
            Andie78 Andreas Schnitzerling
            Jonathan Ellis
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: