You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Dikang Gu (JIRA)" <ji...@apache.org> on 2016/09/27 23:00:27 UTC

[jira] [Comment Edited] (CASSANDRA-12715) Fix exceptions with the new vnode allocation.

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

Dikang Gu edited comment on CASSANDRA-12715 at 9/27/16 11:00 PM:
-----------------------------------------------------------------

I have a fix for this, [~blambov], do you mind to take a look? 

Thanks!


was (Author: dikanggu):
I have a fix for this, [~blambov], do you mind to take a look? https://github.com/DikangGu/cassandra/commit/9a4d4153dcfae7a95992b5506b50db12a95233b6

Thanks!

> Fix exceptions with the new vnode allocation.
> ---------------------------------------------
>
>                 Key: CASSANDRA-12715
>                 URL: https://issues.apache.org/jira/browse/CASSANDRA-12715
>             Project: Cassandra
>          Issue Type: Bug
>            Reporter: Dikang Gu
>            Assignee: Dikang Gu
>             Fix For: 3.0.x, 3.x
>
>
> Problem: see exceptions when bootstrapping nodes using the new vnode allocation algorithm. I'm able to reproduce it in trunk as well:
> {code}
> INFO  [main] 2016-09-26 15:36:54,978 StorageService.java:1437 - JOINING: calculation complete, ready to bootstrap
> INFO  [main] 2016-09-26 15:36:54,978 StorageService.java:1437 - JOINING: getting bootstrap token
> ERROR [main] 2016-09-26 15:36:54,989 CassandraDaemon.java:752 - Exception encountered during startup
> java.lang.AssertionError: null
>         at org.apache.cassandra.locator.TokenMetadata.getTopology(TokenMetadata.java:1209) ~[main/:na]
>         at org.apache.cassandra.dht.tokenallocator.TokenAllocation.getStrategy(TokenAllocation.java:201) ~[main/:na]
>         at org.apache.cassandra.dht.tokenallocator.TokenAllocation.getStrategy(TokenAllocation.java:164) ~[main/:na]
>         at org.apache.cassandra.dht.tokenallocator.TokenAllocation.allocateTokens(TokenAllocation.java:54) ~[main/:na]
>         at org.apache.cassandra.dht.BootStrapper.allocateTokens(BootStrapper.java:207) ~[main/:na]
>         at org.apache.cassandra.dht.BootStrapper.getBootstrapTokens(BootStrapper.java:174) ~[main/:na]
>         at org.apache.cassandra.service.StorageService.joinTokenRing(StorageService.java:929) ~[main/:na]
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:697) ~[main/:na]
>         at org.apache.cassandra.service.StorageService.initServer(StorageService.java:582) ~[main/:na]
>         at org.apache.cassandra.service.CassandraDaemon.setup(CassandraDaemon.java:392) [main/:na]
>         at org.apache.cassandra.service.CassandraDaemon.activate(CassandraDaemon.java:601) [main/:na]
>         at org.apache.cassandra.service.CassandraDaemon.main(CassandraDaemon.java:735) [main/:na]
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)