Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-13712

JMX MBeans are not exposed because of race condition between creating platform mbean server and registering mbeans

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.6, 6.6.2, 6.6.5, 7.7.2, 8.2, 8.1.1
    • Fix Version/s: master (9.0), 8.3
    • Component/s: JMX
    • Labels:
      None

      Description

      This is quite easy to reproduce.

      wget https://archive.apache.org/dist/lucene/solr/6.6.0/solr-6.6.0.tgz
      tar xvf solr-6.6.0.tgz
      cd solr-6.6.0
      

      Enable jmx reporting by editing the server/solr/solr.xml and adding the following under the "<solr>" tag:

      <metrics>
              <reporter id="jmx" class="org.apache.solr.metrics.reporters.SolrJmxReporter" />
        </metrics>
      

      Start solr with:

      ./bin/solr start -e cloud -noprompt
      

      Open jconsole and inspect mbeans for solr nodes running on port 8983 and 7574. You'll find that all mbeans (node, jvm, jetty, solr) are present for the solr on port 8983 but completely absent for the solr node running on port 7574.

      Same behavior is on 6.6.2 and 6.6.6. However, Solr 7.x and 8.x seem to be fine.

        Attachments

        1. SOLR-13712.patch
          3 kB
          Shalin Shekhar Mangar

          Activity

            People

            • Assignee:
              shalin Shalin Shekhar Mangar
              Reporter:
              shalin Shalin Shekhar Mangar
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: