liaoxin01 opened a new pull request, #69847:
URL: https://github.com/apache/doris/pull/69847
### What problem does this PR solve?
Issue Number: None
Related PR: #69705
Problem Summary:
Two cloud file cache cases still fail in a cloud regression run after #69705.
- `test_ttl_lru_evict`: TTL blocks are evicted only when the whole cache is
full (`is_overflow()` checks the total capacity, not the TTL queue). On a 20
GiB cache that takes about 22 loads of about 960 MB each, which took longer
than the 300s TTL of the table under ASAN. The TTL of a tablet counts from its
creation, so once it expired the blocks became NORMAL and no TTL eviction
happened any more (`evicted only 0 bytes after 24 loads`). After the first
load, shrink the cache of the BE to four loads with `/api/file_cache?op=reset`,
so it overflows within a few loads. Restore the capacity before waiting for the
TTL queue to drain, and in `onFinish` in case the case fails earlier.
- `test_stale_rowset`: the cache of the compaction input rowsets is removed
only when the BE sweeps the stale rowsets, and `file_cache_cache_size` is
published by the background monitor every 5 seconds after that. The case read
the metric once, 60 seconds after compaction, and got the value from before the
removal (input 20915 + output 2609 = 23524). Poll the metric until it shrinks,
for up to 180 seconds.
### Release note
None
### Check List (For Author)
- Test <!-- At least one of them must be included. -->
- [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 <!-- Add your reason? -->
- Behavior changed:
- [x] No.
- [ ] Yes. <!-- Explain the behavior change -->
- Does this need documentation?
- [x] No.
- [ ] Yes. <!-- Add document PR link here. eg:
https://github.com/apache/doris-website/pull/1214 -->
### Check List (For Reviewer who merge this PR)
- [ ] Confirm the release note
- [ ] Confirm test cases
- [ ] Confirm document
- [ ] Add branch pick label <!-- Add branch pick label that this PR should
merge into -->
--
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]