cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Podkowinski (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CASSANDRA-11961) Nonfatal NPE in CompactionMetrics
Date Wed, 29 Jun 2016 12:24:37 GMT

    [ https://issues.apache.org/jira/browse/CASSANDRA-11961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15355128#comment-15355128
] 

Stefan Podkowinski commented on CASSANDRA-11961:
------------------------------------------------

Missing {{CFMetaData}} from {{CompactionInfo}} can cause other issues as well, e.g. by calling
{{getId()}}.

We got the following exception when calling {{nodetool compactionstats}} on a 2.2 node under
heavy load:

{noformat}
java.lang.NullPointerException
  at org.apache.cassandra.db.compaction.CompactionInfo.getId(CompactionInfo.java:68)
  at org.apache.cassandra.db.compaction.CompactionInfo.asMap(CompactionInfo.java:126)
  at org.apache.cassandra.db.compaction.CompactionManager.getCompactions(CompactionManager.java:1548)
  at sun.reflect.GeneratedMethodAccessor57.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at sun.reflect.misc.Trampoline.invoke(MethodUtil.java:71)
  at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at sun.reflect.misc.MethodUtil.invoke(MethodUtil.java:275)
  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:112)
  at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:46)
  at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:237)
  at com.sun.jmx.mbeanserver.PerInterface.getAttribute(PerInterface.java:83)
  at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(MBeanSupport.java:206)
  at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(DefaultMBeanServerInterceptor.java:647)
  at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(JmxMBeanServer.java:678)
  at javax.management.remote.rmi.RMIConnectionImpl.doOperation(RMIConnectionImpl.java:1445)
  at javax.management.remote.rmi.RMIConnectionImpl.access$300(RMIConnectionImpl.java:76)
  at javax.management.remote.rmi.RMIConnectionImpl$PrivilegedOperation.run(RMIConnectionImpl.java:1309)
  at javax.management.remote.rmi.RMIConnectionImpl.doPrivilegedOperation(RMIConnectionImpl.java:1401)
  at javax.management.remote.rmi.RMIConnectionImpl.getAttribute(RMIConnectionImpl.java:639)
  at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
  at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
  at java.lang.reflect.Method.invoke(Method.java:498)
  at sun.rmi.server.UnicastServerRef.dispatch(UnicastServerRef.java:323)
  at sun.rmi.transport.Transport$1.run(Transport.java:200)
  at sun.rmi.transport.Transport$1.run(Transport.java:197)
  at java.security.AccessController.doPrivileged(Native Method)
  at sun.rmi.transport.Transport.serviceCall(Transport.java:196)
  at sun.rmi.transport.tcp.TCPTransport.handleMessages(TCPTransport.java:568)
  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(TCPTransport.java:826)
  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.lambda$run$0(TCPTransport.java:683)
  at java.security.AccessController.doPrivileged(Native Method)
  at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(TCPTransport.java:682)
  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
  at java.lang.Thread.run(Thread.java:745)
{noformat}



> Nonfatal NPE in CompactionMetrics
> ---------------------------------
>
>                 Key: CASSANDRA-11961
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-11961
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Robert Stupp
>            Assignee: Achal Shah
>            Priority: Minor
>              Labels: lhf
>             Fix For: 3.8
>
>
> Just saw the following NPE on trunk. Means, that {{metaData}} from {{CFMetaData metaData
= compaction.getCompactionInfo().getCFMetaData();}} is {{null}}. A simple {{if (metaData ==
null) continue;}} should fix this.
> {code}
> Caused by: java.lang.NullPointerException: null
> 	at org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:103)
~[main/:na]
> 	at org.apache.cassandra.metrics.CompactionMetrics$2.getValue(CompactionMetrics.java:78)
~[main/:na]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message