jinglining commented on a change in pull request #10364: [FLINK-14993][metrics]
FrontMetricGroup passes reporter-specific parameters
URL: https://github.com/apache/flink/pull/10364#discussion_r354247811
##########
File path:
flink-metrics/flink-metrics-jmx/src/test/java/org/apache/flink/metrics/jmx/JMXReporterTest.java
##########
@@ -182,9 +187,13 @@ public Integer getValue() {
}
};
- rep1.notifyOfAddedMetric(g1, "rep1", new FrontMetricGroup<>(0,
new TaskManagerMetricGroup(reg, "host", "tm")));
+ rep1.notifyOfAddedMetric(g1, "rep1", new FrontMetricGroup<>(
+ new ReporterScopedSettings(0, '.'),
+ new TaskManagerMetricGroup(reg, "host", "tm")));
- rep2.notifyOfAddedMetric(g2, "rep2", new FrontMetricGroup<>(1,
new TaskManagerMetricGroup(reg, "host", "tm")));
+ rep2.notifyOfAddedMetric(g2, "rep2", new FrontMetricGroup<>(
+ new ReporterScopedSettings(1, '.'),
+ new TaskManagerMetricGroup(reg, "host", "tm")));
Review comment:
As it is same with line 192, could define a variable, then use the variable.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services