cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brandon Williams (JIRA)" <j...@apache.org>
Subject [jira] [Reopened] (CASSANDRA-5107) node fails to start because host id is missing
Date Fri, 18 Jan 2013 15:26:13 GMT

     [ https://issues.apache.org/jira/browse/CASSANDRA-5107?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brandon Williams reopened CASSANDRA-5107:
-----------------------------------------


It didn't :(  Here's another slightly different stacktrace where a remote node's hostId is
missing:

{noformat}
 INFO [main] 2013-01-18 09:24:30,576 StorageService.java (line 1288) Node /127.0.0.3 state
jump to normal
 INFO [main] 2013-01-18 09:24:30,583 StorageService.java (line 744) Startup completed! Now
serving reads.
 WARN [main] 2013-01-18 09:24:30,597 Auth.java (line 131) Skipping default superuser setup:
some nodes are not ready
 INFO [GossipStage:1] 2013-01-18 09:24:30,637 Gossiper.java (line 782) Node /127.0.0.1 has
restarted, now UP
 INFO [GossipStage:1] 2013-01-18 09:24:30,637 Gossiper.java (line 750) InetAddress /127.0.0.1
is now UP
 INFO [GossipStage:1] 2013-01-18 09:24:30,639 StorageService.java (line 1288) Node /127.0.0.1
state jump to normal
 INFO [GossipStage:2] 2013-01-18 09:24:30,640 Gossiper.java (line 782) Node /127.0.0.2 has
restarted, now UP
ERROR [GossipStage:1] 2013-01-18 09:24:30,641 CassandraDaemon.java (line 133) Exception in
thread Thread[GossipStage:1,5,main]
java.lang.NullPointerException
    at org.apache.cassandra.gms.Gossiper.getHostId(Gossiper.java:637)
    at org.apache.cassandra.service.StorageService.handleStateNormal(StorageService.java:1304)
    at org.apache.cassandra.service.StorageService.onChange(StorageService.java:1166)
    at org.apache.cassandra.service.StorageService.onJoin(StorageService.java:1899)
    at org.apache.cassandra.gms.Gossiper.handleMajorStateChange(Gossiper.java:802)
    at org.apache.cassandra.gms.Gossiper.applyStateLocally(Gossiper.java:853)
    at org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(GossipDigestAck2VerbHandler.java:43)
    at org.apache.cassandra.net.MessageDeliveryTask.run(MessageDeliveryTask.java:56)
    at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    at java.lang.Thread.run(Thread.java:662)
 INFO [GossipStage:2] 2013-01-18 09:24:30,642 Gossiper.java (line 750) InetAddress /127.0.0.2
is now UP
{noformat}
                
> node fails to start because host id is missing
> ----------------------------------------------
>
>                 Key: CASSANDRA-5107
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-5107
>             Project: Cassandra
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.2.0
>            Reporter: Brandon Williams
>            Assignee: Brandon Williams
>             Fix For: 1.2.1
>
>
> I saw this once on dtestbot but couldn't figure it out, but now I've encountered it myself:
> {noformat}
> ERROR 22:04:45,949 Exception encountered during startup
> java.lang.AssertionError
>    at org.apache.cassandra.locator.TokenMetadata.updateHostId(TokenMetadata.java:219)
>    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:442)
>    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:397)
>    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:309)
>    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
>    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
> java.lang.AssertionError
>    at org.apache.cassandra.locator.TokenMetadata.updateHostId(TokenMetadata.java:219)
>    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:442)
>    at org.apache.cassandra.service.StorageService.initServer(StorageService.java:397)
>    at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:309)
>    at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:397)
>    at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:440)
> Exception encountered during startup: null
> {noformat}
> Somehow our own hostid is null sometimes.

--
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

Mime
View raw message