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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]