You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by sh...@apache.org on 2015/10/18 12:31:39 UTC

svn commit: r1709255 - in /lucene/dev/branches/branch_5x: ./ solr/ solr/CHANGES.txt solr/core/ solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java

Author: shalin
Date: Sun Oct 18 10:31:38 2015
New Revision: 1709255

URL: http://svn.apache.org/viewvc?rev=1709255&view=rev
Log:
SOLR-8162: JmxMonitoredMap#clear triggers a query on all the MBeans thus generating lots of warnings

Modified:
    lucene/dev/branches/branch_5x/   (props changed)
    lucene/dev/branches/branch_5x/solr/   (props changed)
    lucene/dev/branches/branch_5x/solr/CHANGES.txt   (contents, props changed)
    lucene/dev/branches/branch_5x/solr/core/   (props changed)
    lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java

Modified: lucene/dev/branches/branch_5x/solr/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/CHANGES.txt?rev=1709255&r1=1709254&r2=1709255&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/CHANGES.txt (original)
+++ lucene/dev/branches/branch_5x/solr/CHANGES.txt Sun Oct 18 10:31:38 2015
@@ -170,6 +170,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
 ----------------------

Modified: lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java
URL: http://svn.apache.org/viewvc/lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java?rev=1709255&r1=1709254&r2=1709255&view=diff
==============================================================================
--- lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java (original)
+++ lucene/dev/branches/branch_5x/solr/core/src/java/org/apache/solr/core/JmxMonitoredMap.java Sun Oct 18 10:31:38 2015
@@ -141,7 +141,8 @@ public class JmxMonitoredMap<K, V> exten
       
       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);
       }