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 2021/01/18 04:10:02 UTC

[GitHub] [incubator-doris] caiconghui commented on a change in pull request #5205: [Load] Load job should not begin transaction when task queue in loadingLoadTaskScheduler is full to avoid txn timeout

caiconghui commented on a change in pull request #5205:
URL: https://github.com/apache/incubator-doris/pull/5205#discussion_r559307133



##########
File path: fe/fe-core/src/main/java/org/apache/doris/load/loadv2/LoadJobScheduler.java
##########
@@ -63,12 +64,18 @@ protected void runAfterCatalogReady() {
 
     private void process() throws InterruptedException {
         while (true) {
-            // take one load job from queue
-            LoadJob loadJob = needScheduleJobs.poll();
-            if (loadJob == null) {
+            if (!needScheduleJobs.isEmpty()) {
+                if (needScheduleJobs.peek() instanceof BrokerLoadJob && Catalog.getCurrentCatalog().getLoadingLoadTaskScheduler().isTaskQueueFull()) {

Review comment:
       Spark Load not use async loading 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.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



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