Uh oh!
There was an error while loading. Please reload this page.
[fix](auto-partition) Register auto-partition tables with retention_count in DynamicPartitionScheduler on restart - #61954
Conversation
hello-stephen
commented
Mar 31, 2026
Thank you for your contribution to Apache Doris. Please clearly describe your PR:
|
zclllyybb
commented
Mar 31, 2026
run buildall |
There was a problem hiding this comment.
Pull request overview
Fixes a restart-time gap where AUTO PARTITION tables configured with partition.retention_count were not being re-registered into DynamicPartitionScheduler, causing partition retention cleanup to stop working after FE restart until manual re-registration.
Changes:
- Extend
DynamicPartitionScheduler.initDynamicPartitionTable()to also registerOlapTables withpartition.retention_count > 0. - Add an FE unit test to verify retention-count auto-partition tables are re-registered when the scheduler is (re-)initialized.
- Add a docker regression test intended to validate retention behavior across FE restart.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.
| File | Description |
|---|---|
fe/fe-core/src/main/java/org/apache/doris/clone/DynamicPartitionScheduler.java | Registers AUTO RANGE auto-partition tables with partition.retention_count during scheduler initialization on restart. |
fe/fe-core/src/test/java/org/apache/doris/catalog/DynamicPartitionTableTest.java | Adds a unit test verifying initDynamicPartitionTable() re-registers retention-count auto-partition tables. |
regression-test/suites/partition_p0/auto_partition/test_auto_partition_retention_restart.groovy | Adds a docker regression test for retention-count behavior after FE restart. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Uh oh!
There was an error while loading. Please reload this page.
…ount in DynamicPartitionScheduler on restart Auto-partition tables with `partition.retention_count` set were not being registered in DynamicPartitionScheduler during FE restart, causing retention policies to stop working until manual re-registration. Modified `initDynamicPartitionTable()` to check for both dynamic partition tables and OlapTables with retention_count > 0, ensuring these tables are properly tracked after restart
5dde7d0 to
fb4962aComparezclllyybb
commented
Mar 31, 2026
run buildall |
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 3 out of 3 changed files in this pull request and generated no new comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
PR approved by anyone and no changes requested. |
PR approved by at least one committer and no changes requested. |
doris-robot
commented
Mar 31, 2026
TPC-H: Total hot run time: 26804 ms |
doris-robot
commented
Mar 31, 2026
TPC-DS: Total hot run time: 169701 ms |
Uh oh!
There was an error while loading. Please reload this page.
…ount in DynamicPartitionScheduler on restart (#61954) Auto-partition tables with `partition.retention_count` set were not being registered in DynamicPartitionScheduler during FE restart, causing retention policies to stop working until manual re-registration. Modified `initDynamicPartitionTable()` to check for both dynamic partition tables and OlapTables with retention_count > 0, ensuring these tables are properly tracked after restart
…ount in DynamicPartitionScheduler on restart (#61954) Auto-partition tables with `partition.retention_count` set were not being registered in DynamicPartitionScheduler during FE restart, causing retention policies to stop working until manual re-registration. Modified `initDynamicPartitionTable()` to check for both dynamic partition tables and OlapTables with retention_count > 0, ensuring these tables are properly tracked after restart
…ount in DynamicPartitionScheduler on restart (#61954) Auto-partition tables with `partition.retention_count` set were not being registered in DynamicPartitionScheduler during FE restart, causing retention policies to stop working until manual re-registration. Modified `initDynamicPartitionTable()` to check for both dynamic partition tables and OlapTables with retention_count > 0, ensuring these tables are properly tracked after restart
…uplication (#62477) Related PR: #61954 Problem Summary: Extract the dynamic partition table check logic into a private helper method `isDynamicScheduleTable()` and add documentation explaining that DynamicPartitionScheduler tracks both dynamic partition tables with scheduling enabled and auto partition tables using `partition.retention_count` for periodic cleanup.
…uplication (#62477) Related PR: #61954 Problem Summary: Extract the dynamic partition table check logic into a private helper method `isDynamicScheduleTable()` and add documentation explaining that DynamicPartitionScheduler tracks both dynamic partition tables with scheduling enabled and auto partition tables using `partition.retention_count` for periodic cleanup.
Related PR: #57013
Auto-partition tables with
partition.retention_countset were not being registered in DynamicPartitionScheduler during FE restart, causing retention policies to stop working until manual re-registration. ModifiedinitDynamicPartitionTable()to check for both dynamic partition tables and OlapTables with retention_count > 0, ensuring these tables are properly tracked after restart