You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by GitBox <gi...@apache.org> on 2019/12/05 11:15:03 UTC

[GitHub] [flink] jinglining commented on a change in pull request #10364: [FLINK-14993][metrics] FrontMetricGroup passes reporter-specific parameters

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_r354247289
 
 

 ##########
 File path: flink-metrics/flink-metrics-jmx/src/test/java/org/apache/flink/metrics/jmx/JMXReporterTest.java
 ##########
 @@ -128,8 +129,12 @@ public Integer getValue() {
 			}
 		};
 
-		rep1.notifyOfAddedMetric(g1, "rep1", new FrontMetricGroup<>(0, new TaskManagerMetricGroup(reg, "host", "tm")));
-		rep2.notifyOfAddedMetric(g2, "rep2", 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<>(
+			new ReporterScopedSettings(0, '.'),
+			new TaskManagerMetricGroup(reg, "host", "tm")));
 
 
 Review comment:
   As it is same with line 134, 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:
users@infra.apache.org


With regards,
Apache Git Services