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

GCInspector detected GC before ThreadPools are initialized

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Normal
    • Resolution: Fixed
    • 2.2.0 beta 1
    • Legacy/Tools
    • None
    • Normal

    Description

      While running the dtest one_all_test (consistency_test.TestConsistency), I ran into the following exception:

      
      java.lang.RuntimeException: Error reading: org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ReadStage,name=ActiveTasks
              at org.apache.cassandra.metrics.ThreadPoolMetrics.getJmxMetric(ThreadPoolMetrics.java:134)
              at org.apache.cassandra.utils.StatusLogger.log(StatusLogger.java:55)
              at org.apache.cassandra.service.GCInspector.handleNotification(GCInspector.java:147)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor$ListenerWrapper.handleNotification(DefaultMBeanServerInterceptor.java:1754)
              at sun.management.NotificationEmitterSupport.sendNotification(NotificationEmitterSupport.java:156)
              at sun.management.GarbageCollectorImpl.createGCNotification(GarbageCollectorImpl.java:150)
      Caused by: java.lang.reflect.UndeclaredThrowableException
              at com.sun.proxy.$Proxy3.getValue(Unknown Source)
              at org.apache.cassandra.metrics.ThreadPoolMetrics.getJmxMetric(ThreadPoolMetrics.java:123)
              ... 5 more
      Caused by: javax.management.InstanceNotFoundException: org.apache.cassandra.metrics:type=ThreadPools,path=request,scope=ReadStage,name=ActiveTasks
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getMBean(DefaultMBeanServerInterceptor.java:1095)
              at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:643)
              at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
              at javax.management.MBeanServerInvocationHandler.invoke(MBeanServerInvocationHandler.java:267)
              ... 7 more
          
      
      

      Dtest didn't preserve the logs, which implies that this wasn't in the system.log, but printed to stderr somehow, it's unclear with all the piping dtest and ccm do. I have yet to reproduce the issue.

      Attachments

        1. 9019.txt
          0.6 kB
          Yuki Morishita
        2. 9019-v2.txt
          2 kB
          Yuki Morishita

        Issue Links

          Activity

            People

              yukim Yuki Morishita
              philipthompson Philip Thompson
              Yuki Morishita
              Ariel Weisberg
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: