Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 0 additions & 10 deletions src/java/org/apache/cassandra/gms/Gossiper.java
Original file line number Diff line number Diff line change
Expand Up @@ -2178,16 +2178,6 @@ public void unsafeBroadcastLeftStatus(InetAddressAndPort left,
toSend.forceNewerGenerationUnsafe();
toSend.markDead();
VersionedValue value = StorageService.instance.valueFactory.left(tokens, computeExpireTime());

if (left.equals(getBroadcastAddressAndPort()))
{
// Adding local state bumps the value's version. To keep this consistent across
// the cluster, re-fetch it before broadcasting.
Gossiper.instance.addLocalApplicationState(ApplicationState.STATUS_WITH_PORT, value);
value = Gossiper.instance.endpointStateMap.get(getBroadcastAddressAndPort())
.getApplicationState(ApplicationState.STATUS_WITH_PORT);
}

toSend.addApplicationState(ApplicationState.STATUS_WITH_PORT, value);
GossipDigestAck2 payload = new GossipDigestAck2(Collections.singletonMap(left, toSend));
logger.info("Sending app state with status {} to {}", value.value, sendTo);
Expand Down