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

[replication] most of the source metrics are wrong when there's multiple slaves

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Not A Problem
    • 0.92.1, 0.94.0
    • None
    • None
    • None

    Description

      Most of the metrics in replication were written with 1 slave in mind but with multiple slaves the issue really shows. Most of the metrics are set directly:

      public void enqueueLog(Path log) {
        this.queue.put(log);
        this.metrics.sizeOfLogQueue.set(queue.size());
      }
      

      So sizeOfLogQueue is always showing the size of the queue that updated the metric last.

      I'm not sure what's the right way to fix this since we can't have dynamic metrics. Merging them would work here but it wouldn't work so well with ageOfLastShippedOp since the age can be different and it definitely cannot be summed.

      Assigning to Elliott since he seems to dig metrics these days.

      Attachments

        1. HBASE-6323-0.patch
          28 kB
          Elliott Neil Clark
        2. HBASE-6323-1.patch
          31 kB
          Elliott Neil Clark
        3. HBASE-6323-2.patch
          31 kB
          Elliott Neil Clark

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jdcryans Jean-Daniel Cryans
              Votes:
              1 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: