You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@doris.apache.org by GitBox <gi...@apache.org> on 2022/12/29 11:09:42 UTC

[GitHub] [doris] spaces-X commented on a diff in pull request #15480: [Fix](SparkLoad): fix the timeout aborted loadtasks are not cleaned up.

spaces-X commented on code in PR #15480:
URL: https://github.com/apache/doris/pull/15480#discussion_r1058890386


##########
fe/fe-core/src/main/java/org/apache/doris/load/loadv2/SparkLoadJob.java:
##########
@@ -695,6 +695,8 @@ private void clearJob() {
             // clear job infos that not persist
             sparkLoadAppHandle = null;
             resourceDesc = null;
+            etlOutputPath = "";
+            appId = "";

Review Comment:
   If the job is cancelled by user, the `clearJob()` will be called twice.
   Set thess shtring empty,to ensure the idempotency of the `clearJob` function.



-- 
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@doris.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@doris.apache.org
For additional commands, e-mail: commits-help@doris.apache.org