mirror of https://github.com/apache/cassandra
Try harder to not let a node flap after the gossip goodbye.
Patch by brandonwilliams, reviewed by jasobrown for CASSANDRA-5254
This commit is contained in:
parent
aba9a17742
commit
2b87bfe552
|
|
@ -44,6 +44,12 @@ public class GossipDigestAck2VerbHandler implements IVerbHandler
|
||||||
InetAddress from = message.getFrom();
|
InetAddress from = message.getFrom();
|
||||||
logger_.trace("Received a GossipDigestAck2Message from {}", from);
|
logger_.trace("Received a GossipDigestAck2Message from {}", from);
|
||||||
}
|
}
|
||||||
|
if (!Gossiper.instance.isEnabled())
|
||||||
|
{
|
||||||
|
if (logger_.isTraceEnabled())
|
||||||
|
logger_.trace("Ignoring GossipDigestAck2Message because gossip is disabled");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
byte[] bytes = message.getMessageBody();
|
byte[] bytes = message.getMessageBody();
|
||||||
DataInputStream dis = new DataInputStream( new FastByteArrayInputStream(bytes) );
|
DataInputStream dis = new DataInputStream( new FastByteArrayInputStream(bytes) );
|
||||||
|
|
|
||||||
|
|
@ -1134,7 +1134,7 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
|
||||||
logger.info("Announcing shutdown");
|
logger.info("Announcing shutdown");
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
Thread.sleep(intervalInMillis);
|
Thread.sleep(intervalInMillis * 2);
|
||||||
}
|
}
|
||||||
catch (InterruptedException e)
|
catch (InterruptedException e)
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue