cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Matthias Keller (JIRA)" <>
Subject [jira] Created: (CASSANDRA-2214) Bootstrap Token collision after nodetool loadbalance
Date Tue, 22 Feb 2011 11:06:38 GMT
Bootstrap Token collision after nodetool loadbalance

                 Key: CASSANDRA-2214
             Project: Cassandra
          Issue Type: Bug
    Affects Versions: 0.7.2
            Reporter: Matthias Keller

I had two nodes for testing. They both owned around 50% of all data, my test CF has RF=2
Then I added a third node (bootstrapped it):
Address         Status State   Load            Owns    Token
                                                       101483442157567999664061592210059906302        Up     Normal  320.42 KB       50.00%  16412850427333383798217940352117853438        Up     Normal  341.53 KB       26.25%  61078635599166706937511052402724559481        Up     Normal  321.3 KB        23.75%  101483442157567999664061592210059906302

Then I wanted to re-balance node 2 (, so I issued the  loadbalance  command on it.
It took quite a while but after leaving the ring and coming back, it seems to have assigned
the same token as node 3 (; I get this on node3:
ERROR 11:47:09,719 Fatal exception in thread Thread[HintedHandoff:1,1,main]
java.lang.RuntimeException: java.lang.NullPointerException
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$
Caused by: java.lang.*NullPointerException*
        at org.apache.cassandra.db.HintedHandOffManager.waitForSchemaAgreement(
        at org.apache.cassandra.db.HintedHandOffManager.deliverHintsToEndpoint(
        at org.apache.cassandra.db.HintedHandOffManager.access$100(
        at org.apache.cassandra.db.HintedHandOffManager$2.runMayThrow(
        ... 3 more

And a second later, this on node 1 (
ERROR 11:47:10,719 Fatal exception in thread Thread[GossipStage:2,5,main]
java.lang.RuntimeException: Bootstrap Token collision between / and / (token
        at org.apache.cassandra.locator.TokenMetadata.addBootstrapToken(
        at org.apache.cassandra.service.StorageService.handleStateBootstrap(
        at org.apache.cassandra.service.StorageService.onChange(
        at org.apache.cassandra.service.StorageService.onJoin(
        at org.apache.cassandra.gms.Gossiper.handleMajorStateChange(
        at org.apache.cassandra.gms.Gossiper.handleNewJoin(
        at org.apache.cassandra.gms.Gossiper.applyStateLocally(
        at org.apache.cassandra.gms.GossipDigestAck2VerbHandler.doVerb(
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
        at java.util.concurrent.ThreadPoolExecutor$

This message is automatically generated by JIRA.
For more information on JIRA, see:


View raw message