catch and exceptons from MBean registation that may happen during some tests because multiple solr servers use same MBean Server

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1380301 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Sami Siren 2012-09-03 17:25:11 +00:00
parent 6bdf95f9b6
commit 9d96a5647c
1 changed files with 5 additions and 1 deletions

View File

@ -634,7 +634,11 @@ public class SolrResourceLoader implements ResourceLoader
for (SolrInfoMBean bean : arr) {
infoRegistry.put(bean.getName(), bean);
try {
infoRegistry.put(bean.getName(), bean);
} catch (Throwable t) {
log.warn("could not register MBean '" + bean.getName() + "'.", t);
}
}
}