mirror of https://github.com/apache/cassandra
don't NPE shutting down, due to gossip failure
This commit is contained in:
parent
6faf80c9d2
commit
ea5b6246d2
|
|
@ -1267,7 +1267,8 @@ public class Gossiper implements IFailureDetectionEventListener, GossiperMBean
|
|||
|
||||
public void stop()
|
||||
{
|
||||
scheduledGossipTask.cancel(false);
|
||||
if (scheduledGossipTask != null)
|
||||
scheduledGossipTask.cancel(false);
|
||||
logger.info("Announcing shutdown");
|
||||
Uninterruptibles.sleepUninterruptibly(intervalInMillis * 2, TimeUnit.MILLISECONDS);
|
||||
MessageOut message = new MessageOut(MessagingService.Verb.GOSSIP_SHUTDOWN);
|
||||
|
|
|
|||
Loading…
Reference in New Issue