HBASE-2892 Replication metrics aren't updated
git-svn-id: https://svn.apache.org/repos/asf/hbase/trunk@980993 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
b3db1e976e
commit
77aef8f799
|
@ -463,6 +463,7 @@ Release 0.21.0 - Unreleased
|
|||
HBASE-2890 Initialize RPC JMX metrics on startup (Gary Helmling via Stack)
|
||||
HBASE-2755 Duplicate assignment of a region after region server recovery
|
||||
(Kannan Muthukkaruppan via Stack)
|
||||
HBASE-2892 Replication metrics aren't updated
|
||||
|
||||
IMPROVEMENTS
|
||||
HBASE-1760 Cleanup TODOs in HTable
|
||||
|
|
|
@ -58,8 +58,6 @@ public class ReplicationSinkMetrics implements Updater {
|
|||
metricsRecord = MetricsUtil.createRecord(context, "replication");
|
||||
metricsRecord.setTag("RegionServer", name);
|
||||
context.registerUpdater(this);
|
||||
// Add jvmmetrics.
|
||||
JvmMetrics.init("RegionServer", name);
|
||||
// export for JMX
|
||||
new ReplicationStatistics(this.registry, "ReplicationSink");
|
||||
}
|
||||
|
@ -78,5 +76,6 @@ public class ReplicationSinkMetrics implements Updater {
|
|||
this.appliedBatchesRate.pushMetric(this.metricsRecord);
|
||||
this.ageOfLastAppliedOp.pushMetric(this.metricsRecord);
|
||||
}
|
||||
this.metricsRecord.update();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -73,8 +73,6 @@ public class ReplicationSourceMetrics implements Updater {
|
|||
metricsRecord = MetricsUtil.createRecord(context, "replication");
|
||||
metricsRecord.setTag("RegionServer", name);
|
||||
context.registerUpdater(this);
|
||||
// Add jvmmetrics.
|
||||
JvmMetrics.init("RegionServer", name);
|
||||
// export for JMX
|
||||
new ReplicationStatistics(this.registry, "ReplicationSource for " + id);
|
||||
}
|
||||
|
@ -97,5 +95,6 @@ public class ReplicationSourceMetrics implements Updater {
|
|||
this.ageOfLastShippedOp.pushMetric(this.metricsRecord);
|
||||
this.sizeOfLogQueue.pushMetric(this.metricsRecord);
|
||||
}
|
||||
this.metricsRecord.update();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue