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:
Yonik Seeley 2010-10-14 21:03:25 +00:00
parent a9e8bddb9a
commit 314974bf48
1 changed files with 2 additions and 1 deletions

View File

@ -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 {