[
https://issues.apache.org/jira/browse/GOBBLIN-1083?focusedWorklogId=417537&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-417537
]
ASF GitHub Bot logged work on GOBBLIN-1083:
-------------------------------------------
Author: ASF GitHub Bot
Created on: 07/Apr/20 08:18
Start Date: 07/Apr/20 08:18
Worklog Time Spent: 10m
Work Description: arjun4084346 commented on pull request #2923:
[GOBBLIN-1083] Unit test improving & return failed when helix task cancelled
URL: https://github.com/apache/incubator-gobblin/pull/2923#discussion_r404623597
##########
File path:
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/task/FailedTask.java
##########
@@ -16,19 +16,30 @@
*/
package org.apache.gobblin.runtime.task;
+import org.apache.gobblin.configuration.ConfigurationKeys;
import org.apache.gobblin.configuration.WorkUnitState;
import org.apache.gobblin.publisher.DataPublisher;
import org.apache.gobblin.publisher.NoopPublisher;
import org.apache.gobblin.runtime.JobState;
import org.apache.gobblin.runtime.TaskContext;
+import org.apache.gobblin.runtime.TaskState;
import org.apache.gobblin.source.workunit.WorkUnit;
+import com.google.common.base.Throwables;
+
+import groovy.util.logging.Slf4j;
+
+
/**
- * A task which raise an exception when run
+ * A task which returns "FAILED" state directly.
*/
+@Slf4j
public class FailedTask extends BaseAbstractTask {
- public FailedTask (TaskContext taskContext) {
+ private final TaskContext taskContext;
Review comment:
Oh yes, maybe have this in BaseAbstractTask so it can be removed from all
child classes?
----------------------------------------------------------------
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:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 417537)
Time Spent: 2.5h (was: 2h 20m)
> Maximize helix retry by returning failure when cancel
> -----------------------------------------------------
>
> Key: GOBBLIN-1083
> URL: https://issues.apache.org/jira/browse/GOBBLIN-1083
> Project: Apache Gobblin
> Issue Type: Improvement
> Reporter: Lei Sun
> Priority: Major
> Time Spent: 2.5h
> Remaining Estimate: 0h
>
--
This message was sent by Atlassian Jira
(v8.3.4#803005)