mirror of https://github.com/apache/lucene.git
Minor logging improvements
This commit is contained in:
parent
7350c50316
commit
0ec7986fc0
|
@ -490,10 +490,10 @@ public class JettySolrRunner {
|
|||
Map<String, String> prevContext = MDC.getCopyOfContextMap();
|
||||
MDC.clear();
|
||||
|
||||
log.info("Start Jetty (original configured port={})", this.config.port);
|
||||
|
||||
try {
|
||||
int port = reusePort && jettyPort != -1 ? jettyPort : this.config.port;
|
||||
log.info("Start Jetty (configured port={}, binding port={})", this.config.port, port);
|
||||
|
||||
|
||||
// if started before, make a new server
|
||||
if (startedBefore) {
|
||||
|
|
|
@ -149,7 +149,9 @@ public class NodeLostTrigger extends TriggerBase {
|
|||
|
||||
Set<String> newLiveNodes = new HashSet<>(cloudManager.getClusterStateProvider().getLiveNodes());
|
||||
log.debug("Running NodeLostTrigger: {} with currently live nodes: {} and last live nodes: {}", name, newLiveNodes.size(), lastLiveNodes.size());
|
||||
|
||||
log.trace("Current Live Nodes for {}: {}", name, newLiveNodes);
|
||||
log.trace("Last Live Nodes for {}: {}", name, lastLiveNodes);
|
||||
|
||||
// have any nodes that we were tracking been added to the cluster?
|
||||
// if so, remove them from the tracking map
|
||||
Set<String> trackingKeySet = nodeNameVsTimeRemoved.keySet();
|
||||
|
@ -191,6 +193,7 @@ public class NodeLostTrigger extends TriggerBase {
|
|||
log.debug("NodeLostTrigger processor for lost nodes: {} is not ready, will try later", nodeNames);
|
||||
}
|
||||
} else {
|
||||
log.debug("NodeLostTrigger firing, but no processor - so removing lost nodes: {}", nodeNames);
|
||||
nodeNames.forEach(n -> {
|
||||
nodeNameVsTimeRemoved.remove(n);
|
||||
});
|
||||
|
|
|
@ -792,7 +792,7 @@ public class MiniSolrCloudCluster {
|
|||
}
|
||||
|
||||
public void waitForJettyToStop(JettySolrRunner runner) throws TimeoutException {
|
||||
log.info("waitForJettyToStop: {}", runner.getNodeName());
|
||||
log.info("waitForJettyToStop: {}", runner.getLocalPort());
|
||||
TimeOut timeout = new TimeOut(15, TimeUnit.SECONDS, TimeSource.NANO_TIME);
|
||||
while(!timeout.hasTimedOut()) {
|
||||
if (runner.isStopped()) {
|
||||
|
|
Loading…
Reference in New Issue