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/05/14 09:28:47 UTC

[GitHub] [flink] azagrebin commented on a change in pull request #8413: [FLINK-12488][metrics] Pass Status group to NetworkEnvironment

azagrebin commented on a change in pull request #8413: [FLINK-12488][metrics] Pass Status group to NetworkEnvironment
URL: https://github.com/apache/flink/pull/8413#discussion_r283707423
 
 

 ##########
 File path: flink-runtime/src/main/java/org/apache/flink/runtime/taskexecutor/TaskManagerRunner.java
 ##########
 @@ -358,15 +360,15 @@ public static TaskExecutor startTaskManager(
 				remoteAddress,
 				localCommunicationOnly);
 
-		TaskManagerMetricGroup taskManagerMetricGroup = MetricUtils.instantiateTaskManagerMetricGroup(
+		Tuple2<TaskManagerMetricGroup, MetricGroup> taskManagerMetricGroup = MetricUtils.instantiateTaskManagerMetricGroup(
 
 Review comment:
   I would consider moving:
   ```
   MetricGroup statusGroup = taskManagerMetricGroup.addGroup(METRIC_GROUP_STATUS_NAME);
   // Initialize the TM metrics			// Initialize the TM metrics
   instantiateStatusMetrics(statusGroup);			instantiateStatusMetrics(statusGroup);
   ```
   out of `MetricUtils.instantiateTaskManagerMetricGroup` into this method here
   instead of having `Tuple2` return type, imho, it will be more readable.

----------------------------------------------------------------
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