hubgeter opened a new pull request, #69324:
URL: https://github.com/apache/doris/pull/69324
### What problem does this PR solve?
Issue Number: N/A
Related PR: N/A
Problem Summary:
`KVCache` executed value factories while holding the shard mutex. Iceberg
and Paimon deletion-vector loading could therefore block unrelated cache keys
during remote I/O and decoding, and different value types could share the same
string key.
This PR moves factory execution to a per-key lock, keeps one in-flight load
per key, isolates entries by value type, and simplifies Fluss tail loading to
use the same single-flight path.
### Release note
None
### Check List (For Author)
- Test
- [ ] Regression test
- [x] Unit Test
- 55 targeted ASAN tests passed: KVCache concurrency, Iceberg V1/V2
deletion vectors, Paimon deletion vectors, and Fluss cache paths.
- clang-format and build hygiene checks passed.
- [ ] 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]