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

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.4.0, 1.2.3, 1.1.7, 2.0.0
    • Fix Version/s: 1.4.0, 1.2.4, 0.98.24, 1.1.8, 2.0.0
    • Component/s: Replication
    • Labels:
      None
    • Hadoop Flags:
      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.patch
          5 kB
          Guanghao Zhang
        2. HBASE-16870-ADDENDUM.patch
          9 kB
          Guanghao Zhang
        3. HBASE-16870-ADDENDUM-v1.patch
          10 kB
          Guanghao Zhang
        4. HBASE-16870-branch-1.1.patch
          13 kB
          Guanghao Zhang
        5. HBASE-16870-branch-1.1-v1.patch
          15 kB
          Guanghao Zhang
        6. HBASE-16870-branch-1.1-v1.patch
          15 kB
          Guanghao Zhang
        7. HBASE-16870-branch-1.3.patch
          13 kB
          Guanghao Zhang
        8. HBASE-16870-branch-1.3-v1.patch
          14 kB
          Guanghao Zhang
        9. HBASE-16870-branch-1.3-v1.patch
          14 kB
          Guanghao Zhang
        10. HBASE-16870-branch-1.patch
          14 kB
          Guanghao Zhang
        11. HBASE-16870-branch-1-v1.patch
          15 kB
          Guanghao Zhang
        12. HBASE-16870-branch-1-v1.patch
          15 kB
          Guanghao Zhang
        13. HBASE-16870-v1.patch
          10 kB
          Guanghao Zhang

        Issue Links

          Activity

            People

            • Assignee:
              zghao Guanghao Zhang
              Reporter:
              zghao Guanghao Zhang

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment