mirror of https://github.com/apache/lucene.git
tests: add instance id to CoreContainer
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1022710 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
a9e8bddb9a
commit
314974bf48
|
@ -88,6 +88,7 @@ public class CoreContainer
|
|||
|
||||
public CoreContainer() {
|
||||
solrHome = SolrResourceLoader.locateSolrHome();
|
||||
log.info("New CoreContainer: solrHome=" + solrHome + " instance="+System.identityHashCode(this));
|
||||
}
|
||||
|
||||
private void initZooKeeper(String zkHost, int zkClientTimeout) {
|
||||
|
@ -479,7 +480,7 @@ public class CoreContainer
|
|||
protected void finalize() throws Throwable {
|
||||
try {
|
||||
if(!isShutDown){
|
||||
log.error("CoreContainer was not shutdown prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!!");
|
||||
log.error("CoreContainer was not shutdown prior to finalize(), indicates a bug -- POSSIBLE RESOURCE LEAK!!! instance=" + System.identityHashCode(this));
|
||||
shutdown();
|
||||
}
|
||||
} finally {
|
||||
|
|
Loading…
Reference in New Issue