You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by br...@apache.org on 2021/04/19 13:47:51 UTC
[cassandra] 03/07: Fix condition in shadow round check
This is an automated email from the ASF dual-hosted git repository.
brandonwilliams pushed a commit to branch CASSANDRA-16588
in repository https://gitbox.apache.org/repos/asf/cassandra.git
commit 9937c8bf2672f377d6f0ab5a7da559ed69eed712
Author: Sam Tunnicliffe <sa...@beobal.com>
AuthorDate: Thu Apr 15 15:05:15 2021 +0100
Fix condition in shadow round check
---
src/java/org/apache/cassandra/gms/Gossiper.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/java/org/apache/cassandra/gms/Gossiper.java b/src/java/org/apache/cassandra/gms/Gossiper.java
index 756b043..412b2be 100644
--- a/src/java/org/apache/cassandra/gms/Gossiper.java
+++ b/src/java/org/apache/cassandra/gms/Gossiper.java
@@ -1705,7 +1705,7 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
// it is possible for a previously queued ack to be sent to us when we come back up in shadow
EndpointState localState = epStateMap.get(FBUtilities.getBroadcastAddress());
// return false if response doesn't contain state necessary for safety check
- return localState != null && localState.containsApplicationState(ApplicationState.HOST_ID);
+ return localState == null || localState.containsApplicationState(ApplicationState.HOST_ID);
}
protected void maybeFinishShadowRound(InetAddress respondent, boolean isInShadowRound, Map<InetAddress, EndpointState> epStateMap)
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org