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

Add the metrics of replication sources which were transformed from other dead rs to ReplicationLoad

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.4.0, 1.2.3, 1.1.7, 2.0.0
    • 1.4.0, 1.2.4, 0.98.24, 1.1.8, 2.0.0
    • Replication
    • None
    • Reviewed

    Description

        private void buildReplicationLoad() {
          // get source
          List<ReplicationSourceInterface> sources = this.replicationManager.getSources();
          List<MetricsSource> sourceMetricsList = new ArrayList<MetricsSource>();
      
          for (ReplicationSourceInterface source : sources) {
            if (source instanceof ReplicationSource) {
              sourceMetricsList.add(((ReplicationSource) source).getSourceMetrics());
            }
          }
      
          // get sink
          MetricsSink sinkMetrics = this.replicationSink.getSinkMetrics();
          this.replicationLoad.buildReplicationLoad(sourceMetricsList, sinkMetrics);
        }
      

      The buildReplicationLoad method in o.a.h.h.r.r.Replication didn't consider the replication source which were transformed from other died rs.

      Attachments

        1. HBASE-16870-v1.patch
          10 kB
          Guanghao Zhang
        2. HBASE-16870-branch-1-v1.patch
          15 kB
          Guanghao Zhang
        3. HBASE-16870-branch-1-v1.patch
          15 kB
          Guanghao Zhang
        4. HBASE-16870-branch-1.patch
          14 kB
          Guanghao Zhang
        5. HBASE-16870-branch-1.3-v1.patch
          14 kB
          Guanghao Zhang
        6. HBASE-16870-branch-1.3-v1.patch
          14 kB
          Guanghao Zhang
        7. HBASE-16870-branch-1.3.patch
          13 kB
          Guanghao Zhang
        8. HBASE-16870-branch-1.1-v1.patch
          15 kB
          Guanghao Zhang
        9. HBASE-16870-branch-1.1-v1.patch
          15 kB
          Guanghao Zhang
        10. HBASE-16870-branch-1.1.patch
          13 kB
          Guanghao Zhang
        11. HBASE-16870-ADDENDUM-v1.patch
          10 kB
          Guanghao Zhang
        12. HBASE-16870-ADDENDUM.patch
          9 kB
          Guanghao Zhang
        13. HBASE-16870.patch
          5 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

              zghao Guanghao Zhang
              zghao Guanghao Zhang
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: