BePPPower commented on code in PR #18325: URL: https://github.com/apache/doris/pull/18325#discussion_r1165161420
########## fe/fe-core/src/main/java/org/apache/doris/load/ExportMgr.java: ########## @@ -86,6 +96,44 @@ private void writeUnlock() { lock.writeLock().unlock(); } + @Override + protected void runAfterCatalogReady() { + List<ExportJob> jobs = getExportJobs(JobState.PENDING); + // Because exportJob may be replayed from log + // we also need handle EXPORTING state exportJob. + jobs.addAll(getExportJobs(JobState.EXPORTING)); + int runningJobNumLimit = Config.export_running_job_num_limit; + if (runningJobNumLimit > 0 && !jobs.isEmpty()) { Review Comment: Exporting state means this exportJob is exporting. If we change the job's state to `EXPORTING` here, the job may not be assigned to the thread in the executor pool. So I think the change of job's state should in ExportExportingTask.exec() -- 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-unsubscr...@doris.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: commits-unsubscr...@doris.apache.org For additional commands, e-mail: commits-h...@doris.apache.org