You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dolphinscheduler.apache.org by GitBox <gi...@apache.org> on 2022/06/28 13:39:20 UTC

[GitHub] [dolphinscheduler] ruanwenjun commented on a diff in pull request #10656: [Bug] [Task] SQL task and Datax Task no exception stack trace in task log

ruanwenjun commented on code in PR #10656:
URL: https://github.com/apache/dolphinscheduler/pull/10656#discussion_r908493690


##########
dolphinscheduler-task-plugin/dolphinscheduler-task-datax/src/main/java/org/apache/dolphinscheduler/plugin/task/datax/DataxTask.java:
##########
@@ -167,6 +167,7 @@ public void handle() throws Exception {
             setAppIds(commandExecuteResult.getAppIds());
             setProcessId(commandExecuteResult.getProcessId());
         } catch (Exception e) {
+            logger.error("datax task error", e);

Review Comment:
   In fact, the exception will be thrown to upper layer, and will log at the upper layer. I don't suggest we log the exception and throw it again, this will cause the exception occur multiple times in log.



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

To unsubscribe, e-mail: commits-unsubscribe@dolphinscheduler.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org