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

Sylvain Lebresne commented on CASSANDRA-5107:
---------------------------------------------

Can't that be because we start gossiper before setting the applicationState 
(including the host_id)? Granted we have a 1 second delay before really 
starting the gossipTask, but if those stack traces come from the test bot, 
maybe sometime the machine is slow enough that you can have a whole second 
interruption of the thread initializing the server.

In any case, this feel dangerous to me. Maybe we could split Gossiper.start 
into a Gossiper.init(), followed by the addition of the applicationstate that 
we expect to be always there, and then we start it.
                
> 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

Reply via email to