mirror of https://github.com/apache/lucene.git
SOLR-5681: Add synchronization while printing tracking maps to a fix jenkins failure
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1597137 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
297f06ecb4
commit
f6452d8120
|
@ -2709,9 +2709,17 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
|
||||||
}
|
}
|
||||||
|
|
||||||
private void printTrackingMaps() {
|
private void printTrackingMaps() {
|
||||||
log.debug("RunningTasks: {}", runningTasks.toString());
|
if(log.isDebugEnabled()) {
|
||||||
log.debug("CompletedTasks: {}", completedTasks.keySet().toString());
|
synchronized (runningTasks) {
|
||||||
log.debug("RunningZKTasks: {}", runningZKTasks.toString());
|
log.debug("RunningTasks: {}", runningTasks.toString());
|
||||||
|
}
|
||||||
|
synchronized (completedTasks) {
|
||||||
|
log.debug("CompletedTasks: {}", completedTasks.keySet().toString());
|
||||||
|
}
|
||||||
|
synchronized (runningZKTasks) {
|
||||||
|
log.debug("RunningZKTasks: {}", runningZKTasks.toString());
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue