morrySnow commented on code in PR #13044:
URL: https://github.com/apache/doris/pull/13044#discussion_r983076227


##########
fe/fe-core/src/main/java/org/apache/doris/common/Config.java:
##########
@@ -1785,4 +1785,10 @@ public class Config extends ConfigBase {
      */
     @ConfField(mutable = true, masterOnly = true)
     public static int be_exec_version = max_be_exec_version;
+
+    @ConfField(mutable = false)
+    public static int statistic_job_scheduler_execution_interval_sec = 60 * 60 
* 1000;

Review Comment:
   if this name include unit sec. i think * 1000 should move to scheduler's ctor



##########
fe/fe-core/src/main/java/org/apache/doris/statistics/StatisticsJobScheduler.java:
##########
@@ -75,10 +75,10 @@ public class StatisticsJobScheduler extends MasterDaemon {
      * and schedule them one by one, and finally divide each job to several 
subtasks and execute them.
      */
     public final Queue<StatisticsJob> pendingJobQueue
-            = Queues.newLinkedBlockingQueue(Config.cbo_max_statistics_job_num);
+            = 
Queues.newLinkedBlockingQueue(Config.statistic_job_scheduler_execution_interval_sec);

Review Comment:
   should put this session variable to L81?



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