Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-12715

Fix exceptions with the new vnode allocation.

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Normal
    • Resolution: Fixed
    • Fix Version/s: 3.0.10, 3.10
    • Component/s: None
    • Labels:
      None
    • Severity:
      Normal

      Description

      Problem: see exceptions when bootstrapping nodes using the new vnode allocation algorithm. I'm able to reproduce it in trunk as well:

      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]
      

        Attachments

          Activity

            People

            • Assignee:
              dikanggu Dikang Gu
              Reporter:
              dikanggu Dikang Gu
              Authors:
              Dikang Gu
              Reviewers:
              Branimir Lambov
            • Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: