[
https://issues.apache.org/jira/browse/GOBBLIN-1516?focusedWorklogId=638899&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-638899
]
ASF GitHub Bot logged work on GOBBLIN-1516:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 17/Aug/21 21:29
Start Date: 17/Aug/21 21:29
Worklog Time Spent: 10m
Work Description: sv2000 commented on a change in pull request #3365:
URL: https://github.com/apache/gobblin/pull/3365#discussion_r690736657
##########
File path:
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinHelixTaskStateTracker.java
##########
@@ -61,7 +61,9 @@ public GobblinHelixTaskStateTracker(Properties properties) {
@Override
public void registerNewTask(Task task) {
try {
- this.scheduledReporters.put(task.getTaskId(),
scheduleTaskMetricsUpdater(new TaskMetricsUpdater(task), task));
+ if (GobblinMetrics.isEnabled(task.getTaskState().getWorkunit())) {
+ this.scheduledReporters.put(task.getTaskId(),
scheduleTaskMetricsUpdater(new TaskMetricsUpdater(task), task));
Review comment:
Agreed. TaskMetrics collection seems un-necessary if metrics.enabled =
false.
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 638899)
Time Spent: 1h 20m (was: 1h 10m)
> Only schedule TaskMetricsUpdateder when metric-reporting is enabled by config
> -----------------------------------------------------------------------------
>
> Key: GOBBLIN-1516
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1516
> Project: Apache Gobblin
> Issue Type: Bug
> Reporter: Lei Sun
> Priority: Major
> Time Spent: 1h 20m
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)