hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Guanghao Zhang (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-16870) Add the metrics of replication sources which were transformed from other died rs to ReplicationLoad
Date Tue, 18 Oct 2016 11:18:58 GMT
Guanghao Zhang created HBASE-16870:
--------------------------------------

             Summary: Add the metrics of replication sources which were transformed from other
died rs to ReplicationLoad
                 Key: HBASE-16870
                 URL: https://issues.apache.org/jira/browse/HBASE-16870
             Project: HBase
          Issue Type: Bug
          Components: Replication
            Reporter: Guanghao Zhang
            Assignee: Guanghao Zhang
            Priority: Minor


{code}
  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);
  }
{code}
The buildReplicationLoad method in o.a.h.h.r.r.Replication didn't consider the replication
source which were transformed from other died rs.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message