mirror of https://github.com/apache/lucene.git
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:
parent
6bdf95f9b6
commit
9d96a5647c
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue