Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-12102

Duplicate keys in HBase.RegionServer metrics JSON

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.0, 0.98.10, 2.0.0
    • Fix Version/s: 1.0.1, 1.1.0, 0.98.11, 2.0.0
    • Component/s: None
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The JSON returned by /jmx on the RegionServer contains duplicate 'tag.Context' keys for various HBase.RegionServer metrics.

      Regions:

      {
          "name" : "Hadoop:service=HBase,name=RegionServer,sub=Regions",
          "modelerType" : "RegionServer,sub=Regions",
          "tag.Context" : "regionserver",
          "tag.Context" : "regionserver",
          "tag.Hostname" : "some.host.name",
          ...
      }
      

      Server:

      "name" : "Hadoop:service=HBase,name=RegionServer,sub=Server",
          "modelerType" : "RegionServer,sub=Server",
          "tag.Context" : "regionserver",
          "tag.zookeeperQuorum" : "some.zookeeper.quorum.peers",
          "tag.serverName" : "some.server.name",
          "tag.clusterId" : "88c186ea-2308-4713-8b5f-5a3e829cbb10",
          "tag.Context" : "regionserver",
          ...
      }
      

      IPC:

      {
          "name" : "Hadoop:service=HBase,name=IPC,sub=IPC",
          "modelerType" : "IPC,sub=IPC",
          "tag.Context" : "ipc",
          "tag.Context" : "ipc",
          "tag.Hostname" : "some.host.name",
          ...
      }
      

      This can cause issues with some JSON parsers. We should avoid emitting duplicate keys if it is under our control.

        Attachments

        1. HBASE-12102.patch
          4 kB
          Ravi Kishore Valeti
        2. HBASE-12102-0.98.patch
          7 kB
          Andrew Kyle Purtell

          Activity

            People

            • Assignee:
              rvaleti Ravi Kishore Valeti
              Reporter:
              apurtell Andrew Kyle Purtell
            • Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: