cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Tootill (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5000) Null pointer exception in SecondaryIndexManager.getIndexKeyFor in Cassandra 1.1.x
Date Thu, 06 Dec 2012 00:40:58 GMT


David Tootill commented on CASSANDRA-5000:

sIntSer is a Serializer<Integer>.  Here are the declarations of all class-level variables:

private static boolean sCassandraActive;
private static String sClusterName = null;
private static String sCbmColumnFamily = null;
private static boolean sCreateKeyspace = false;
private static String sHostIp = null;
private static String sContextsColumnFamily = null;
private static String sKeyspaceName = null;
private static String sMetricAnalysisColumnFamily = null;
private static String sSecondaryEventsColumnFamily = null;
private static String sTenantContextName = null;
private static final ConcurrentSkipListSet<String> sSecondaryIndexes = new ConcurrentSkipListSet<>();
private static final AtomicReference<Keyspace> sKeyspace = new AtomicReference<>();
private static Cluster sCluster = null;
private static ColumnFamilyDefinition sCbmFamilyDefinition;
private static final Serializer<String> sStringSer = new StringSerializer();
private static final Serializer<Integer> sIntSer = new IntegerSerializer();
private static final Serializer<Composite> sCompositeSer = new CompositeSerializer();
private static final Serializer<UUID> sUuidSer = new UUIDSerializer();
private static final ConfigurableConsistencyLevel sConfigurableConsistencyLevel = new ConfigurableConsistencyLevel();
public static final String kContextCountColumn = "contextCount";
public static final String kTenantColumn = "Tenant_Context";
public final static String kCbmSerializedMetricColumnName = "cbm";
public static final StringIdentifier kMetricNameContext = new StringIdentifier("nm");
private static final Logger sLogger = Logger.getLogger(CassandraSetup.class);

I am compiling and testing on 64-bit machines, using 64-bit Java 7.  Are you able to reproduce
the problem?  Are there client changes you would like me to try?
> Null pointer exception in SecondaryIndexManager.getIndexKeyFor in Cassandra 1.1.x 
> ----------------------------------------------------------------------------------
>                 Key: CASSANDRA-5000
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.1.0
>         Environment: Linux (exact environment doesn't appear to be relevant; reproduced
on RedHat and Centos)
>            Reporter: David Tootill
>            Assignee: Yuki Morishita
>             Fix For: 1.1.8
>         Attachments: CassandraDefect5000-1.0-SNAPSHOT-1.tar.gz, CassandraDefect5000-1.0-SNAPSHOT-2.tar.gz,
Cassandra Defect 5000 Reproduction and Background.docx, stdlog.txt, system.log
> Cassandra 1.1.0 and following releases gets an NPE in SecondaryIndexManager writing a
CF with multiple secondary keys.   Problem did not occur in 1.0.x, and can be resolved by
downgrading the Cassandra server.   Stack trace is:
> ERROR [MutationStage:47] 2012-11-28 11:24:30,865 (line 134)
Exception in thread Thread[MutationStage:47,5,main]
> java.lang.RuntimeException: java.lang.NullPointerException
> 	at org.apache.cassandra.service.StorageProxy$
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(
> 	at java.util.concurrent.ThreadPoolExecutor$
> 	at
> Caused by: java.lang.NullPointerException
> 	at org.apache.cassandra.db.index.SecondaryIndexManager.getIndexKeyFor(
> 	at org.apache.cassandra.db.index.SecondaryIndexManager.applyIndexUpdates(
> 	at org.apache.cassandra.db.Table.apply(
> 	at org.apache.cassandra.db.Table.apply(
> 	at org.apache.cassandra.db.RowMutation.apply(
> 	at org.apache.cassandra.service.StorageProxy$6.runMayThrow(
> 	at org.apache.cassandra.service.StorageProxy$
> Client stack trace is:
> me.prettyprint.hector.api.exceptions.HTimedOutException: TimedOutException()
> 	at me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate([hector-core-1.0-5.jar:]
> 	at me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover([hector-core-1.0-5.jar:]
> 	at me.prettyprint.cassandra.model.ExecutingKeyspace.doExecuteOperation([hector-core-1.0-5.jar:]
> 	at me.prettyprint.cassandra.model.MutatorImpl.execute([hector-core-1.0-5.jar:]
> 	... 3 more

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

View raw message