<@U0A71G31CDV> Hi! Question about a statistics bug...
# questions-and-troubleshooting
i
@Rocky Hi! Question about a statistics bug on StarRocks 3.5.19 (shared-data, Kubernetes operator, Iceberg catalogs). Symptom: query-triggered statistics collection for external tables stops working. statistics.external_column_statistics stops updating completely. The leader FE logs hundreds of thousands of Connector Analyze TaskQueue pending task num reach limit: 100 per day. Global dictionary updates for external tables seem to stop too. Only a leader FE restart clears it, and it comes back after 13 hours to 3 days. It has happened 6 times since September. What we found: it matches PR #80329, “Fix leaked running task and dead scheduler in connector query-triggered analyze”: same-table overwrite in runningTasks, a leak on RejectedExecutionException, and a scheduler that dies silently. Backport #80342 was merged into branch-3.5 on 2026-10-09. It’s already in 4.0.17 (#80341) and 4.1.7 (#80343), but not in any 3.5 release; 3.5.21 is the latest. Questions: Will #80342 be included in 3.5.22? When is 3.5.22 planned? Until then, is there a better workaround on 3.5.19 than turning off enable_query_trigger_analyze and creating scheduled CREATE ANALYZE jobs per table? Any known issues with upgrading directly from 3.5.19 to 3.5.22?
r
Hello! I'm Rocky. It sounds like you've done some excellent detective work on this. You've correctly identified the root cause: a bug in the query-triggered statistics scheduler that leads to leaked running tasks and a silent failure of the scheduler thread. To answer your specific questions: 1. Will PR #80342 be included in 3.5.22? Yes. The backport PR #80342 was merged into the
branch-3.5
on October 9, 2026. Since the current latest 3.5 release (v3.5.21) was cut on August 28, 2026, the next patch release, 3.5.22, is the official landing spot for this fix. 2. When is 3.5.22 planned? StarRocks typically follows a patch release cycle of every 2–3 weeks for stable versions. Given that the fix was merged in early October and version 4.1.7 was released in late October, v3.5.22 is imminent. While there is no publicly posted date, you can monitor the StarRocks GitHub Releases page; it should appear very soon. 3. Better workarounds than manual scheduled jobs? Unfortunately, because the bug involves a dead scheduler thread and leaked task slots in the FE memory, configuration changes have limited effect once the state is corrupted. * Increasing limits: You could try increasing
connector_table_query_trigger_analyze_max_pending_task_num
(default 100) or
connector_table_query_trigger_analyze_max_running_task_num
(default 2), but because the tasks "leak" (stay in the running state forever), you will eventually hit any limit you set. * Recommendation: Disabling
enable_query_trigger_analyze
and using manual
CREATE ANALYZE
jobs is the most robust workaround. Manual jobs use a different scheduling path and are not affected by the "query-triggered" thread's failure. * Global Dictionaries: Since the dead scheduler also stops dictionary updates (controlled by
connector_table_query_trigger_task_schedule_interval
), you may need to restart the leader FE periodically if you rely heavily on global dictionary optimization for Iceberg until you can upgrade. 4. Known issues with upgrading from 3.5.19 to 3.5.22? Upgrading between patch versions (3.5.x to 3.5.y) is standard and generally safe. * Downgrade Warning: The only major warning for the 3.5 line is that once you are on v3.5.2 or later, you must not downgrade to v3.5.0 or v3.5.1 due to metadata changes that will cause an FE crash. Since you are already on 3.5.19, this does not affect your forward upgrade to 3.5.22. * Shared-Data/K8s: Ensure your Helm chart or Operator is updated to point to the new image; the process remains a standard rolling restart of FEs followed by BEs/CNs. If you need this fix urgently before the official 3.5.22 release, you can reach out to the community on the StarRocks Slack or consider a temporary build from the
branch-3.5
HEAD. References • administration/management/FE_configuration.md