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

MetricsHistoryHandler.getOverseerLeader fails when hostname contains hyphen

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

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 7.4
    • 7.4.1, 7.5
    • metrics
    • None

    Description

      as reported on the user list...

      We encounter a lot of log warning entries from the MetricsHistoryHandler saying

      o.a.s.h.a.MetricsHistoryHandler Unknown format of leader id, skipping:
      244550997187166214-server1-b.myhost:8983_solr-n_0000000094

      I don't even know what this MetricsHistoryHandler does, but at least there's a warning.

      Looking at the code you can see that it has to fail if the hostname of the node contains a hyphen:

      String[] ids = oid.split("-");
      if (ids.length != 3) { // unknown format
        log.warn("Unknown format of leader id, skipping: " + oid);
        return null;
      }
      

      Attachments

        Activity

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

          People

            ab Andrzej Bialecki
            hossman Chris M. Hostetter
            Votes:
            1 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment