SOLR-4418: workaround

git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1444084 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Michael McCandless 2013-02-08 15:49:21 +00:00
parent 7f243824d5
commit 17d2d55daa
1 changed files with 11 additions and 4 deletions

View File

@ -16,18 +16,20 @@
*/
package org.apache.solr.core;
import java.lang.management.ManagementFactory;
import java.util.*;
import javax.management.*;
import org.apache.lucene.util.Constants;
import org.apache.solr.core.JmxMonitoredMap.SolrDynamicMBean;
import org.apache.solr.util.AbstractSolrTestCase;
import org.junit.After;
import org.junit.Assume;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Ignore;
import org.junit.Test;
import javax.management.*;
import java.lang.management.ManagementFactory;
import java.util.*;
/**
* Test for JMX Integration
*
@ -80,6 +82,11 @@ public class TestJmxIntegration extends AbstractSolrTestCase {
@Test
public void testJmxUpdate() throws Exception {
// Workaround for SOLR-4418 (this test fails with "No
// mbean found for SolrIndexSearcher" on IBM J9 6.0 and 7.0):
Assume.assumeTrue(!"IBM Corporation".equals(Constants.JVM_VENDOR));
List<MBeanServer> servers = MBeanServerFactory.findMBeanServer(null);
log.info("Servers in testJmxUpdate: " + servers);
log.info(h.getCore().getInfoRegistry().toString());