cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <>
Subject [jira] [Commented] (CASSANDRA-5211) Migrating Clusters with gossip tables that have old dead nodes causes NPE, inability to join cluster
Date Wed, 06 Feb 2013 13:57:13 GMT


Brandon Williams commented on CASSANDRA-5211:

Rick, I don't suppose you might happen to have one of these problem system tables left anywhere?
 The trace indicates that the rack was missing but the dc wasn't, and we only write those
together in a single insert.
> Migrating Clusters with gossip tables that have old dead nodes causes NPE, inability
to join cluster
> ----------------------------------------------------------------------------------------------------
>                 Key: CASSANDRA-5211
>                 URL:
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.1
>            Reporter: Rick Branson
>            Assignee: Brandon Williams
> I had done a removetoken on this cluster when it was 1.1.x, and it had a "ghost" entry
for the removed node still in the stored ring data. When the nodes loaded the table up after
conversion to 1.2 and attempting to migrate to VNodes, I got the following traceback:
> ERROR [WRITE-/] 2013-01-31 18:35:44,788 (line 133) Exception
in thread Thread[WRITE-/,5,main]
> java.lang.NullPointerException
> 	at org.apache.cassandra.utils.ByteBufferUtil.string(
> 	at org.apache.cassandra.utils.ByteBufferUtil.string(
> 	at org.apache.cassandra.cql.jdbc.JdbcUTF8.getString(
> 	at org.apache.cassandra.cql.jdbc.JdbcUTF8.compose(
> 	at org.apache.cassandra.db.marshal.UTF8Type.compose(
> 	at org.apache.cassandra.cql3.UntypedResultSet$Row.getString(
> 	at org.apache.cassandra.db.SystemTable.loadDcRackInfo(
> 	at org.apache.cassandra.locator.Ec2Snitch.getDatacenter(
> 	at org.apache.cassandra.locator.DynamicEndpointSnitch.getDatacenter(
> 	at
> 	at
> 	at
> This is because these ghost nodes had a NULL tokens list in the system/peers table. A
workaround was to delete the offending row in the system/peers table and restart the node.

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