This is an automated email from the ASF dual-hosted git repository.
hello-stephen pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git
The following commit(s) were added to refs/heads/master by this push:
new 77cf85a7aab [fix](regression) Avoid midnight race in auto recycle case
(#65435)
77cf85a7aab is described below
commit 77cf85a7aabcdb22d965ef692e912996688b5a4b
Author: shuke <[email protected]>
AuthorDate: Wed Jul 15 16:42:36 2026 +0800
[fix](regression) Avoid midnight race in auto recycle case (#65435)
### What problem does this PR solve?
Related PR: #65375
Problem Summary:
`test_auto_new_recycle` uses `now()` to create five historical
partitions, one
current-day partition, and two future partitions, then asserts that
retention
leaves six partitions. The day-boundary guard previously ran near the
start of
the case and only reserved 20 seconds, while the time-sensitive
assertion ran
after multiple fixed sleeps. The case could therefore cross midnight
before
the final scheduler pass, changing the correct partition count from six
to
five.
This change moves the guard directly before the final time-sensitive
insert
and reserves 100 seconds for that section. It preserves coverage for the
current-day partition boundary and future partitions while preventing
the
final scheduler pass from crossing midnight.
---
.../suites/partition_p0/auto_partition/test_auto_new_recycle.groovy | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git
a/regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
b/regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
index b37437bdcbf..83b71d2ca2c 100644
---
a/regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
+++
b/regression-test/suites/partition_p0/auto_partition/test_auto_new_recycle.groovy
@@ -111,8 +111,6 @@ suite("test_auto_new_recycle", "nonConcurrent") {
);
"""
- waitUntilSafeExecutionTime("NOT_CROSS_DAY_BOUNDARY", 20)
-
sql """
insert into auto_recycle select date_add('2020-01-01 00:00:00', interval
number day) from numbers("number" = "100");
"""
@@ -171,6 +169,7 @@ suite("test_auto_new_recycle", "nonConcurrent") {
"""
sql """ admin set frontend config
('dynamic_partition_check_interval_seconds' = '600') """
sleep(8000)
+ waitUntilSafeExecutionTime("NOT_CROSS_DAY_BOUNDARY", 100)
sql """
insert into auto_recycle select date_add(now(), interval number-5 day)
from numbers("number" = "8");
"""
@@ -182,4 +181,4 @@ suite("test_auto_new_recycle", "nonConcurrent") {
assertEquals(res.size(), 6)
sql """ admin set frontend config
('dynamic_partition_check_interval_seconds' = '600') """
-}
\ No newline at end of file
+}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]