SOLR-8162: JmxMonitoredMap#clear triggers a query on all the MBeans thus generating lots of warnings

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1709242 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2015-10-18 08:32:53 +00:00
parent 64c73ef6a2
commit 15bbb3fd0b
2 changed files with 4 additions and 1 deletions

View File

@ -279,6 +279,8 @@ Bug Fixes
* SOLR-8167: Authorization framework does not work with POST params (noble)
* SOLR-8162: JmxMonitoredMap#clear triggers a query on all the MBeans thus generating lots of warnings.
(Marius Dumitru Florea, shalin)
Optimizations
----------------------

View File

@ -141,7 +141,8 @@ public class JmxMonitoredMap<K, V> extends
Set<ObjectName> objectNames = null;
try {
objectNames = server.queryNames(null, exp);
ObjectName instance = new ObjectName(jmxRootName + ":*");
objectNames = server.queryNames(instance, exp);
} catch (Exception e) {
LOG.warn("Exception querying for mbeans", e);
}