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 2020/03/17 15:21:32 UTC

[GitHub] [incubator-doris] morningman commented on a change in pull request #3055: [Spark load] FE creates spark load job and submits spark etl job

morningman commented on a change in pull request #3055: [Spark load] FE creates spark load job and submits spark etl job
URL: https://github.com/apache/incubator-doris/pull/3055#discussion_r393746345
 
 

 ##########
 File path: fe/src/main/java/org/apache/doris/load/loadv2/LoadManager.java
 ##########
 @@ -379,6 +380,18 @@ public void processTimeoutJobs() {
         idToLoadJob.values().stream().forEach(entity -> entity.processTimeout());
     }
 
+    // only for those jobs which have etl state, like SparkLoadJob
+    public void processEtlStateJobs() {
+        idToLoadJob.values().stream().filter(job -> (job.jobType == EtlJobType.SPARK && job.state == JobState.ETL))
+                .forEach(job -> {
+                    try {
+                        ((SparkLoadJob) job).updateEtlStatus();
+                    } catch (UserException e) {
+                        LOG.warn("update spark load job etl status fail. error: {}", e);
 
 Review comment:
   Better to print job id here

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services

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