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:
Anshum Gupta 2014-05-23 17:37:06 +00:00
parent 297f06ecb4
commit f6452d8120
1 changed files with 11 additions and 3 deletions

View File

@ -2709,10 +2709,18 @@ public class OverseerCollectionProcessor implements Runnable, ClosableThread {
}
private void printTrackingMaps() {
if(log.isDebugEnabled()) {
synchronized (runningTasks) {
log.debug("RunningTasks: {}", runningTasks.toString());
}
synchronized (completedTasks) {
log.debug("CompletedTasks: {}", completedTasks.keySet().toString());
}
synchronized (runningZKTasks) {
log.debug("RunningZKTasks: {}", runningZKTasks.toString());
}
}
}
String getId(){