[ 
https://issues.apache.org/jira/browse/GOBBLIN-1083?focusedWorklogId=417515&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-417515
 ]

ASF GitHub Bot logged work on GOBBLIN-1083:
-------------------------------------------

                Author: ASF GitHub Bot
            Created on: 07/Apr/20 07:54
            Start Date: 07/Apr/20 07:54
    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_r404608709
 
 

 ##########
 File path: 
gobblin-cluster/src/main/java/org/apache/gobblin/cluster/SleepingTask.java
 ##########
 @@ -73,10 +76,10 @@ public void run() {
     } catch (InterruptedException e) {
       log.error("Sleep interrupted.");
       Thread.currentThread().interrupt();
-      Throwables.propagate(e);
+      failTask(e, taskContext);
 
 Review comment:
   SleepingTask was written to test cancellation code or hanging issues. It is 
meant to sleep for some amount to simulate as a hanging task in production. It 
is supposed propagate exceptions like any normal task would do.
   
 
----------------------------------------------------------------
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: 417515)
    Time Spent: 1h 50m  (was: 1h 40m)

> 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: 1h 50m
>  Remaining Estimate: 0h
>




--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to