cassandra-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tyler Hobbs (JIRA)" <>
Subject [jira] [Created] (CASSANDRA-10134) Always require replace_address to replace existing address
Date Wed, 19 Aug 2015 20:30:45 GMT
Tyler Hobbs created CASSANDRA-10134:

             Summary: Always require replace_address to replace existing address
                 Key: CASSANDRA-10134
             Project: Cassandra
          Issue Type: Bug
          Components: Core
            Reporter: Tyler Hobbs
            Assignee: Stefania
             Fix For: 3.x, 2.1.x, 2.2.x

Normally, when a node is started from a clean state with the same address as an existing down
node, it will fail to start with an error like this:

ERROR [main] 2015-08-19 15:07:51,577 - Exception encountered during
java.lang.RuntimeException: A node with address / already exists, cancelling join.
Use cassandra.replace_address if you want to replace this node.
	at org.apache.cassandra.service.StorageService.checkForEndpointCollision(
	at org.apache.cassandra.service.StorageService.prepareToJoin( ~[main/:na]
	at org.apache.cassandra.service.StorageService.initServer( ~[main/:na]
	at org.apache.cassandra.service.StorageService.initServer( ~[main/:na]
	at org.apache.cassandra.service.CassandraDaemon.setup( [main/:na]
	at org.apache.cassandra.service.CassandraDaemon.activate( [main/:na]
	at org.apache.cassandra.service.CassandraDaemon.main( [main/:na]

However, if {{auto_bootstrap}} is set to false or the node is in its own seed list, it will
not throw this error and will start normally.  The new node then takes over the host ID of
the old node (even if the tokens are different), and the only message you will see is a warning
in the other nodes' logs:

logger.warn("Changing {}'s host ID from {} to {}", endpoint, storedId, hostId);

This could cause an operator to accidentally wipe out the token information for a down node
without replacing it.  To fix this, we should check for an endpoint collision even if {{auto_bootstrap}}
is false or the node is a seed.

This message was sent by Atlassian JIRA

View raw message