[ https://issues.apache.org/jira/browse/GOBBLIN-1127?focusedWorklogId=427451&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-427451 ]
ASF GitHub Bot logged work on GOBBLIN-1127: ------------------------------------------- Author: ASF GitHub Bot Created on: 27/Apr/20 05:13 Start Date: 27/Apr/20 05:13 Worklog Time Spent: 10m Work Description: sv2000 commented on a change in pull request #2967: URL: https://github.com/apache/incubator-gobblin/pull/2967#discussion_r415515266 ########## File path: gobblin-cluster/src/main/java/org/apache/gobblin/cluster/GobblinTaskRunner.java ########## @@ -309,9 +322,22 @@ public void start() { // Start metric reporting if (this.containerMetrics.isPresent()) { - this.containerMetrics.get() - .startMetricReportingWithFileSuffix(ConfigUtils.configToState(this.clusterConfig), - this.taskRunnerId); + try { + this.containerMetrics.get() + .startMetricReportingWithFileSuffix(ConfigUtils.configToState(this.clusterConfig), this.taskRunnerId); + } catch (MetricReporterException e) { + logger.error("Failed to start {} metric reporter", e.getType().name(), e); + if (this.isMetricReportingFailureFatal) { + logger.error("Failing TaskRunner since metric reporting failure is FATAL."); + Throwables.propagate(e); Review comment: Addressed. ---------------------------------------------------------------- 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 Issue Time Tracking ------------------- Worklog Id: (was: 427451) Time Spent: 40m (was: 0.5h) > Provide an option to make metric reporting instantiation failures fatal > ----------------------------------------------------------------------- > > Key: GOBBLIN-1127 > URL: https://issues.apache.org/jira/browse/GOBBLIN-1127 > Project: Apache Gobblin > Issue Type: Improvement > Components: gobblin-cluster > Affects Versions: 0.15.0 > Reporter: Sudarshan Vasudevan > Assignee: Hung Tran > Priority: Major > Fix For: 0.15.0 > > Time Spent: 40m > Remaining Estimate: 0h > > This option allows GobblinTaskRunner to "fail-fast" on metric reporting > instantiation failures. This is particularly sseful in scenarios where > pipeline monitoring depends on metrics and tracking events being emitted. -- This message was sent by Atlassian Jira (v8.3.4#803005)