dcapwell commented on code in PR #2783:
URL: https://github.com/apache/cassandra/pull/2783#discussion_r1350549308
##########
src/java/org/apache/cassandra/gms/Gossiper.java:
##########
@@ -600,11 +600,12 @@ public void convict(InetAddressAndPort endpoint, double
phi)
* This method is used to mark a node as shutdown; that is it gracefully
exited on its own and told us about it
* @param endpoint endpoint that has shut itself down
*/
+ @Deprecated // can remove once 4.x is not supported
protected void markAsShutdown(InetAddressAndPort endpoint)
{
checkProperThreadForStateMutation();
EndpointState epState = endpointStateMap.get(endpoint);
- if (epState == null)
+ if (epState == null || epState.isStateEmpty())
Review Comment:
this blocks the known corruption issue, so back porting this to 4.x should
be safe and fix this specific issue, but won't fix the other issue we talked
about, that host replacement is missing TOKENS. Given the jira is only about
the NPE that feels like a good solution to fix the most branches without any
protocol level change
--
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]