You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Vijay (JIRA)" <ji...@apache.org> on 2013/02/05 09:16:13 UTC

[jira] [Commented] (CASSANDRA-5221) NPE while upgrading from 1.1 to 1.2

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

Vijay commented on CASSANDRA-5221:
----------------------------------

I think the problem here is that we have a race condition, System table was truncated and hence the clustername is somehow gone.

Fix to this problem is to restore the system table from snapshot and restart
cp -Rf /var/lib/cassandra/data/system/LocationInfo/snapshots/1360017134498-LocationInfo/system-LocationInfo-* /var/lib/cassandra/data/system/LocationInfo/

Now another problem showed up, since peers table is new in 1.2 we didn't have any data in it (when the startup was half way through.)

java.lang.AssertionError
	at org.apache.cassandra.locator.TokenMetadata.updateHostId(TokenMetadata.java:221)
	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:451)
	at org.apache.cassandra.service.StorageService.initServer(StorageService.java:406)
	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:282)
	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)

The fix was to remove the system/peers SST's and restart again.
                
> NPE while upgrading from 1.1 to 1.2
> -----------------------------------
>
>                 Key: CASSANDRA-5221
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5221
>             Project: Cassandra
>          Issue Type: Bug
>    Affects Versions: 1.2.1
>            Reporter: Vijay
>
> ERROR 00:29:25,208 Exception encountered during startup
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.SystemTable.upgradeSystemData(SystemTable.java:161)
> 	at org.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:107)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:276)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)
> java.lang.NullPointerException
> 	at org.apache.cassandra.db.SystemTable.upgradeSystemData(SystemTable.java:161)
> 	at org.apache.cassandra.db.SystemTable.finishStartup(SystemTable.java:107)
> 	at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:276)
> 	at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:370)
> 	at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:413)

--
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: http://www.atlassian.com/software/jira