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

   ### What problem does this PR solve?
   
   Issue Number: N/A
   
   Related PR: N/A
   
   Problem Summary:
   
   This PR backports commit `f3156c9ef71` to `branch-4.0` and fixes file cache 
TTL/expiration inconsistency in Doris BE.
   
   - Add a shared helper to calculate file cache expiration with expired-value 
clamping and overflow protection.
   - Reuse the helper in read, write, and cloud warmup paths so the same cache 
object gets the same `expiration_time`.
   - Persist `newest_write_timestamp` for pending/prepared rowsets earlier to 
avoid timestamp drift between write and later read/warmup flows.
   
   ### Release note
   
   None
   
   ### Check List (For Author)
   
   - Test
       - [x] No need to test or manual test. Explain why:
           - [x] Other reason
           - This is a targeted branch-4.0 backport. No focused test was run in 
this environment.
   
   - Behavior changed:
       - [ ] No.
       - [x] Yes. The file cache TTL expiration path is now consistent across 
read, write, and warmup, and pending rowset timestamps are persisted earlier.
   
   - Does this need documentation?
       - [x] No.
       - [ ] Yes.
   


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