Uploaded image for project: 'Lucene - Core'
  1. Lucene - Core
  2. LUCENE-4210

SOlr TestJmxIntegration#testJmxOnCoreReload bug related to TestHarness

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 3.4, 3.5, 3.6
    • Fix Version/s: None
    • Component/s: None
    • Lucene Fields:
      New, Patch Available

      Description

      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

        Attachments

        1. TestHarnessPatch.txt
          0.8 kB
          Emanuele Lombardi

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              lelelombardi@libero.it Emanuele Lombardi
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: