mirror of https://github.com/apache/lucene.git
SOLR-12464: Reduce Overseer.close() logging (for non-Overseer leaders)
This commit is contained in:
parent
8093c450c1
commit
f7aed28760
|
@ -183,6 +183,8 @@ Other Changes
|
||||||
|
|
||||||
* SOLR-12551: Upgrade to Tika 1.18 (Tim Allison via Erick Erickson)
|
* SOLR-12551: Upgrade to Tika 1.18 (Tim Allison via Erick Erickson)
|
||||||
|
|
||||||
|
* SOLR-12464: Reduce Overseer.close() logging (for non-Overseer leaders) (Christine Poerschke)
|
||||||
|
|
||||||
================== 7.4.0 ==================
|
================== 7.4.0 ==================
|
||||||
|
|
||||||
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
Consult the LUCENE_CHANGES.txt file for additional, low level, changes in this release.
|
||||||
|
|
|
@ -544,7 +544,9 @@ public class Overseer implements SolrCloseable {
|
||||||
updaterThread.start();
|
updaterThread.start();
|
||||||
ccThread.start();
|
ccThread.start();
|
||||||
triggerThread.start();
|
triggerThread.start();
|
||||||
assert ObjectReleaseTracker.track(this);
|
if (this.id != null) {
|
||||||
|
assert ObjectReleaseTracker.track(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public Stats getStats() {
|
public Stats getStats() {
|
||||||
|
@ -584,11 +586,15 @@ public class Overseer implements SolrCloseable {
|
||||||
|
|
||||||
public synchronized void close() {
|
public synchronized void close() {
|
||||||
if (closed) return;
|
if (closed) return;
|
||||||
log.info("Overseer (id=" + id + ") closing");
|
if (this.id != null) {
|
||||||
|
log.info("Overseer (id=" + id + ") closing");
|
||||||
|
}
|
||||||
|
|
||||||
doClose();
|
doClose();
|
||||||
this.closed = true;
|
this.closed = true;
|
||||||
assert ObjectReleaseTracker.release(this);
|
if (this.id != null) {
|
||||||
|
assert ObjectReleaseTracker.release(this);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
Loading…
Reference in New Issue