morningman commented on a change in pull request #7371:
URL: https://github.com/apache/incubator-doris/pull/7371#discussion_r768788897
##########
File path: fe/fe-core/src/main/java/org/apache/doris/catalog/Catalog.java
##########
@@ -582,14 +580,19 @@ private Catalog(boolean isCheckpointCatalog) {
this.tabletScheduler = new TabletScheduler(this, systemInfo,
tabletInvertedIndex, stat, Config.tablet_rebalancer_type);
this.tabletChecker = new TabletChecker(this, systemInfo,
tabletScheduler, stat);
+ // The pendingLoadTaskScheduler's queue size should not less than
Config.desired_max_waiting_jobs.
+ // So that we can guarantee that all submitted load jobs can be
scheduled without being starved.
this.pendingLoadTaskScheduler = new
MasterTaskExecutor("pending_load_task_scheduler",
Config.async_pending_load_task_pool_size,
- Config.async_pending_load_task_pool_size,
!isCheckpointCatalog);
+ Config.desired_max_waiting_jobs, !isCheckpointCatalog);
+ // The loadingLoadTaskScheduler's queue size is unlimited, so that it
can receive all loading tasks
+ // created after pending tasks finish. And don't worry about the high
concurrency, because the
Review comment:
OK. I changed. Now when submit a broker load job to the thread pool, I
will check if there are available worker thread in `loading_load_task_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]