cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David B (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-4318) Nodetool compactionstats fails with NullPointerException
Date Thu, 07 Jun 2012 22:26:22 GMT
David B created CASSANDRA-4318:

             Summary: Nodetool compactionstats fails with NullPointerException
                 Key: CASSANDRA-4318
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 1.1.1
         Environment: 2 node cluster running on Ubuntu 10.10 64-bit
16GB Max Heap allocated to each node.
Test keyspace using replication factor 2
            Reporter: David B

Test uses Column family C defined as follows:

create column family C with caching = 'keys_only' and key_validation_class = 'LongType' and
compression_options = { sstable_compression: SnappyCompressor, chunk_length_kb: 64 } and max_compaction_threshold=0;

max_compaction_threshold is set to 0 to disable auto compaction.

SSTables are streamed via sstableloader, after which a major compaction is triggered using
"nodetool compact MyKeyspace C".

Thereafter, attempts to request compaction stats via "nodetool compactionstats" fail with
the following exception:

Exception in thread "main" java.lang.NullPointerException
        at org.apache.cassandra.db.compaction.CompactionInfo.asMap(
        at org.apache.cassandra.db.compaction.CompactionManager.getCompactions(
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(
        at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(
        at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(
        at com.sun.jmx.mbeanserver.PerInterface.getAttribute(
        at com.sun.jmx.mbeanserver.MBeanSupport.getAttribute(
        at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.getAttribute(
        at com.sun.jmx.mbeanserver.JmxMBeanServer.getAttribute(
        at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(
        at java.lang.reflect.Method.invoke(
        at sun.rmi.server.UnicastServerRef.dispatch(
        at sun.rmi.transport.Transport$
        at Method)
        at sun.rmi.transport.Transport.serviceCall(
        at sun.rmi.transport.tcp.TCPTransport.handleMessages(
        at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
        at sun.rmi.transport.tcp.TCPTransport$
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:!default.jspa
For more information on JIRA, see:


View raw message