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

MetricsHandler JSON output incorrect

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.1, 6.4.2, 6.5, 7.0
    • Fix Version/s: 6.5, 7.0
    • Component/s: metrics
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      Default XML output for /admin/metrics looks correct, but when &wt=json is used the output looks wrong:

      ...
        "metrics": [
          "solr.jetty",
          [
            "org.eclipse.jetty.server.handler.DefaultHandler.1xx-responses",
            [
              "count",
              0,
              "meanRate",
              0,
              "1minRate",
              0,
              "5minRate",
              0,
              "15minRate",
              0
            ],
            "org.eclipse.jetty.server.handler.DefaultHandler.2xx-responses",
            [
              "count",
              6,
              "meanRate",
              0.6655558669400584,
              "1minRate",
              1.2,
              "5minRate",
              1.2,
              "15minRate",
              1.2
            ],
      ...
      
      1. SOLR-10269.patch
        1 kB
        Andrzej Bialecki

        Issue Links

          Activity

          Hide
          ab Andrzej Bialecki added a comment -

          Patch. The output looks now like this:

          ...
            "metrics": [
              "solr.jetty",
              {
                "org.eclipse.jetty.server.handler.DefaultHandler.1xx-responses": {
                  "count": 0,
                  "meanRate": 0,
                  "1minRate": 0,
                  "5minRate": 0,
                  "15minRate": 0
                },
                "org.eclipse.jetty.server.handler.DefaultHandler.2xx-responses": {
                  "count": 6,
                  "meanRate": 0.6334427226239667,
                  "1minRate": 1.2,
                  "5minRate": 1.2,
                  "15minRate": 1.2
                },
          ...
          
          Show
          ab Andrzej Bialecki added a comment - Patch. The output looks now like this: ... "metrics" : [ "solr.jetty" , { "org.eclipse.jetty.server.handler.DefaultHandler.1xx-responses" : { "count" : 0, "meanRate" : 0, "1minRate" : 0, "5minRate" : 0, "15minRate" : 0 }, "org.eclipse.jetty.server.handler.DefaultHandler.2xx-responses" : { "count" : 6, "meanRate" : 0.6334427226239667, "1minRate" : 1.2, "5minRate" : 1.2, "15minRate" : 1.2 }, ...
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit e3a0b428fd7dd8747a6b48ef165300ebb23b3198 in lucene-solr's branch refs/heads/master from Andrzej Bialecki
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e3a0b42 ]

          SOLR-10269 MetricHandler JSON output was incorrect.

          Show
          jira-bot ASF subversion and git services added a comment - Commit e3a0b428fd7dd8747a6b48ef165300ebb23b3198 in lucene-solr's branch refs/heads/master from Andrzej Bialecki [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=e3a0b42 ] SOLR-10269 MetricHandler JSON output was incorrect.
          Hide
          jira-bot ASF subversion and git services added a comment -

          Commit dda17616a45219fca65dcebb997782211645571a in lucene-solr's branch refs/heads/branch_6x from Andrzej Bialecki
          [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dda1761 ]

          SOLR-10269 MetricsHandler JSON output was incorrect. (ab)

          Show
          jira-bot ASF subversion and git services added a comment - Commit dda17616a45219fca65dcebb997782211645571a in lucene-solr's branch refs/heads/branch_6x from Andrzej Bialecki [ https://git-wip-us.apache.org/repos/asf?p=lucene-solr.git;h=dda1761 ] SOLR-10269 MetricsHandler JSON output was incorrect. (ab)

            People

            • Assignee:
              ab Andrzej Bialecki
              Reporter:
              ab Andrzej Bialecki
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development