More debugging statements

git-svn-id: https://svn.apache.org/repos/asf/lucene/solr/trunk@682633 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Shalin Shekhar Mangar 2008-08-05 08:38:31 +00:00
parent 25a88db881
commit 4f0119134e
1 changed files with 3 additions and 2 deletions

View File

@ -83,11 +83,12 @@ public class TestJmxIntegration extends AbstractSolrTestCase {
@Test @Test
public void testJmxUpdate() throws Exception { public void testJmxUpdate() throws Exception {
List<MBeanServer> servers = MBeanServerFactory.findMBeanServer(null); List<MBeanServer> servers = MBeanServerFactory.findMBeanServer(null);
System.out.println("Servers in testJmxUpdate: " + servers); System.err.println("Servers in testJmxUpdate: " + servers);
System.err.println(h.getCore().getInfoRegistry());
ObjectName searcher = getObjectName("searcher", h.getCore().getInfoRegistry().get("searcher")); ObjectName searcher = getObjectName("searcher", h.getCore().getInfoRegistry().get("searcher"));
MBeanServer mbeanServer = servers.get(0); MBeanServer mbeanServer = servers.get(0);
System.out.println("Mbeans in server: " + mbeanServer.queryNames(null, null)); System.err.println("Mbeans in server: " + mbeanServer.queryNames(null, null));
assertFalse("No mbean found for SolrIndexSearcher", mbeanServer.queryMBeans(searcher, null).isEmpty()); assertFalse("No mbean found for SolrIndexSearcher", mbeanServer.queryMBeans(searcher, null).isEmpty());