[ https://issues.apache.org/jira/browse/CASSANDRA-12715?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15527705#comment-15527705 ]
Dikang Gu commented on CASSANDRA-12715: --------------------------------------- [~blambov], I modified current unit test a bit, so that it can cover this case as well. Here is the new patch, https://github.com/DikangGu/cassandra/commit/57b6a000f39315b027ffe4caa499806c17c33240 > 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)