frankgh opened a new pull request, #1773:
URL: https://github.com/apache/cassandra/pull/1773

   …eplacement
   
   Add a new check during host replacement. Currently, during a node 
replacement, we check that the node
   has not updated gossip for a configured ring_delay amount of time (defaults 
to 30 seconds). In CASSANDRA-17776,
   the delay is calculated from the max value between the `BROADCAST_INTERVAL` 
and 2X the configured `ring_delay`.
   
   If we see an update from the node that we are replacing in less than the 
calculated `sleep delay`, we throw a
   `UnsupportedOperationException` with message `Cannot replace a live 
node....`. However, we never check whether
   the node is reporting as alive or not alive. In this commit, we add the 
check to ensure that the node is in
   fact reporting as alive before throwing the exception. Additionally, we add 
logging information with values for
   the token, `updateTimestamp`, and `allowedDelay` values for better reporting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to