Jibing-Li commented on code in PR #27334:
URL: https://github.com/apache/doris/pull/27334#discussion_r1400063779


##########
fe/fe-core/src/main/java/org/apache/doris/statistics/AnalysisTaskExecutor.java:
##########
@@ -50,19 +50,12 @@ public AnalysisTaskExecutor(int 
simultaneouslyRunningTaskNum) {
                     TimeUnit.DAYS, new LinkedBlockingQueue<>(),
                     new BlockedPolicy("Analysis Job Executor", 
Integer.MAX_VALUE),
                     "Analysis Job Executor", true);
+            cancelExpiredTask();

Review Comment:
   I see, cancelExpiredTask this function will create a thread.
   I think we need to sleep for a while between two iterations, or this thread 
may use too much cpu resource.



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

Reply via email to