BePPPower commented on code in PR #21911:
URL: https://github.com/apache/doris/pull/21911#discussion_r1271813226


##########
fe/fe-core/src/main/java/org/apache/doris/task/ExportExportingTask.java:
##########
@@ -73,49 +111,105 @@ protected void exec() {
             job.setDoExportingThread(Thread.currentThread());
         }
 
-        List<QueryStmt> selectStmtList = job.getSelectStmtList();
-        boolean isFailed = false;
-        ExportFailMsg errorMsg = null;
+        List<SelectStmt> selectStmtList = job.getSelectStmtList();
         int completeTaskNum = 0;
         List<ExportJob.OutfileInfo> outfileInfoList = Lists.newArrayList();
+
+        int parallelNum = selectStmtList.size();
+        ThreadPoolExecutor exportExecPool = 
ThreadPoolManager.newDaemonFixedThreadPool(parallelNum,

Review Comment:
   You are right! I modify the code logic.
   One ExportExportingtask has only one thread-pool and all `Export Jobs` use 
the same thread-pool.



##########
fe/fe-core/src/main/java/org/apache/doris/task/ExportExportingTask.java:
##########
@@ -73,49 +111,105 @@ protected void exec() {
             job.setDoExportingThread(Thread.currentThread());
         }
 
-        List<QueryStmt> selectStmtList = job.getSelectStmtList();
-        boolean isFailed = false;
-        ExportFailMsg errorMsg = null;
+        List<SelectStmt> selectStmtList = job.getSelectStmtList();
         int completeTaskNum = 0;
         List<ExportJob.OutfileInfo> outfileInfoList = Lists.newArrayList();
+
+        int parallelNum = selectStmtList.size();
+        ThreadPoolExecutor exportExecPool = 
ThreadPoolManager.newDaemonFixedThreadPool(parallelNum,

Review Comment:
   You are right! I modified the code logic.
   One ExportExportingtask has only one thread-pool and all `Export Jobs` use 
the same thread-pool.



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

Reply via email to