lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emanuele Lombardi (JIRA)" <j...@apache.org>
Subject [jira] [Created] (LUCENE-4210) SOlr TestJmxIntegration#testJmxOnCoreReload bug related to TestHarness
Date Wed, 11 Jul 2012 10:08:34 GMT
Emanuele Lombardi created LUCENE-4210:
-----------------------------------------

             Summary: SOlr TestJmxIntegration#testJmxOnCoreReload bug related to TestHarness
                 Key: LUCENE-4210
                 URL: https://issues.apache.org/jira/browse/LUCENE-4210
             Project: Lucene - Java
          Issue Type: Bug
    Affects Versions: 3.6, 3.5, 3.4
            Reporter: Emanuele Lombardi


Using zabbix to monitor my Solr instance I noticed that after core reloading the Mbeans have
disappeared. There is a test -> testJmxIntegration#testJmxOnCoreReload used to check Mbeans
presence after core reload. The test is wrong because TestHarness sets core name to null on
creating the core for the first time (CoreContainer#initialize) so his Mbeans have jmxRootName="solr"
(JmxMonitoredMap#line61). Once the core is created it sets coreName = "" causing new Mbeans
to have jmxRootName="solr/"
So after first core closing only MBeans having name "solr" are removed and   only MBeans with
name "solr/" persists on JMXServer. This test is fake.

Step to reproduce test fail
1) Apply TestHarness patch
2) Run the tests

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message