afedulov commented on a change in pull request #11195: [FLINK-16222][runtime] 
Use plugins mechanism for initializing MetricReporters
URL: https://github.com/apache/flink/pull/11195#discussion_r393832500
 
 

 ##########
 File path: 
flink-runtime/src/main/java/org/apache/flink/runtime/metrics/ReporterSetup.java
 ##########
 @@ -178,36 +164,96 @@ private static ReporterSetup createReporterSetup(String 
reporterName, MetricConf
                                metricReporterOptional.ifPresent(reporter -> {
                                        MetricConfig metricConfig = new 
MetricConfig();
                                        
reporterConfig.addAllToProperties(metricConfig);
-
-                                       
reporterArguments.add(createReporterSetup(reporterName, metricConfig, 
reporter));
+                                       
reporterSetups.add(createReporterSetup(reporterName, metricConfig, reporter));
                                });
-                       }
-                       catch (Throwable t) {
+                       } catch (Throwable t) {
 
 Review comment:
   This code was touched anyhow, because of refactoring, so I think it should 
be OK to do such things, unless you have a strong opinion about this.

----------------------------------------------------------------
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:
us...@infra.apache.org


With regards,
Apache Git Services

Reply via email to