shuke987 opened a new pull request, #65435:
URL: https://github.com/apache/doris/pull/65435

   ### What problem does this PR solve?
   
   Related PR: #65375
   
   Problem Summary:
   
   `test_auto_new_recycle` used `now()` to create five historical partitions and
   three current/future partitions, then asserted that retention left six
   partitions. If the scheduler ran after midnight, the partition for the insert
   day became historical and the correct partition count changed from six to
   five, making the case time-dependent.
   
   This change uses fixed historical and future dates for that scenario. The 
case
   still verifies that `partition.retention_count` keeps the latest three
   historical partitions without recycling future partitions, but it no longer
   depends on the execution time or a day-boundary guard.
   
   Testing:
   
   - `git diff --check`
   - Not run locally because no Doris regression environment was allocated. The
     PR build will run the regression coverage.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [x] Regression test
       - [ ] Unit Test
       - [ ] Manual test (add detailed scripts or steps below)
       - [ ] No need to test or manual test. Explain why:
           - [ ] This is a refactor/code format and no logic has been changed.
           - [ ] Previous test can cover this change.
           - [ ] No code files have been changed.
           - [ ] Other reason
   
   - Behavior changed:
       - [x] No.
       - [ ] Yes.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   
   ### Check List (For Reviewer who merge this PR)
   
   - [ ] Confirm the release note
   - [ ] Confirm test cases
   - [ ] Confirm document
   - [ ] Add branch pick label
   


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