Dikang Gu created CASSANDRA-12715:
-------------------------------------

             Summary: 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)

Reply via email to