autumnust commented on a change in pull request #2856: [GOBBLIN-1011] adjust 
compaction flow to work with virtual partition
URL: https://github.com/apache/incubator-gobblin/pull/2856#discussion_r360967552
 
 

 ##########
 File path: 
gobblin-runtime/src/main/java/org/apache/gobblin/runtime/task/TaskIFaceWrapper.java
 ##########
 @@ -75,6 +78,8 @@ public String getProgress() {
   public void run() {
     try {
       this.underlyingTask.run();
+    } catch (Exception e) {
+      log.error(String.format("Task %s completed with exception", 
this.taskContext.getTaskState().getTaskId()), e);
 
 Review comment:
   This seems to be an anti-pattern to catch exception if `run` method itself 
is not throwing an exception here.  I wonder what is the reason for this 
change? 

----------------------------------------------------------------
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

Reply via email to