arjun4084346 commented on a change in 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 of time 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]
With regards,
Apache Git Services