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

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 6.6, 6.6.2, 6.6.5, 7.7.2, 8.1.1, 8.2
    • 8.3, 9.0
    • JMX
    • 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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            shalin Shalin Shekhar Mangar
            shalin Shalin Shekhar Mangar
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment