mirror of https://github.com/apache/cassandra
get ocd on log capitalization
This commit is contained in:
parent
9c9552aead
commit
752415ed91
|
|
@ -472,7 +472,7 @@ public class CassandraDaemon
|
|||
final int GOSSIP_SETTLE_POLL_INTERVAL_MS = 1000;
|
||||
final int GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED = 3;
|
||||
|
||||
logger.info("waiting for gossip to settle before accepting client requests...");
|
||||
logger.info("Waiting for gossip to settle before accepting client requests...");
|
||||
Uninterruptibles.sleepUninterruptibly(GOSSIP_SETTLE_MIN_WAIT_MS, TimeUnit.MILLISECONDS);
|
||||
int totalPolls = 0;
|
||||
int numOkay = 0;
|
||||
|
|
@ -486,12 +486,12 @@ public class CassandraDaemon
|
|||
totalPolls++;
|
||||
if (active == 0 && pending == 0)
|
||||
{
|
||||
logger.debug("gossip looks settled. CompletedTasks: {}", completed);
|
||||
logger.debug("Gossip looks settled. CompletedTasks: {}", completed);
|
||||
numOkay++;
|
||||
}
|
||||
else
|
||||
{
|
||||
logger.info("gossip not settled after {} polls. Gossip Stage active/pending/completed: {}/{}/{}", totalPolls, active, pending, completed);
|
||||
logger.info("Gossip not settled after {} polls. Gossip Stage active/pending/completed: {}/{}/{}", totalPolls, active, pending, completed);
|
||||
numOkay = 0;
|
||||
}
|
||||
if (forceAfter > 0 && totalPolls > forceAfter)
|
||||
|
|
@ -501,7 +501,10 @@ public class CassandraDaemon
|
|||
break;
|
||||
}
|
||||
}
|
||||
logger.info("gossip settled after {} extra polls; proceeding", totalPolls - GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED);
|
||||
if (totalPolls > GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED)
|
||||
logger.info("Gossip settled after {} extra polls; proceeding", totalPolls - GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED);
|
||||
else
|
||||
logger.debug("Gossip settled after {} extra polls; proceeding", totalPolls - GOSSIP_SETTLE_POLL_SUCCESSES_REQUIRED);
|
||||
}
|
||||
|
||||
public static void stop(String[] args)
|
||||
|
|
|
|||
Loading…
Reference in New Issue