suxiaogang223 opened a new pull request, #67208:
URL: https://github.com/apache/doris/pull/67208
### What problem does this PR solve?
Issue Number: N/A
Related PR: N/A
Problem Summary:
The Paimon JNI writer kept the KEY_DYNAMIC global primary-key index in an
unbounded Java HashMap, which could cause heap OOM for large writes. Reuse
Paimon upstream GlobalIndexAssigner backed by RocksDB, package frocksdbjni, and
bound the RocksDB block cache within the per-writer memory budget. This also
removes the local in-memory index implementation.
### Release note
Fix potential OOM when writing Paimon KEY_DYNAMIC bucket tables.
### Check List (For Author)
- Test
- [ ] Regression test
- [x] 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
`mvn test -Dcheckstyle.skip=true` (paimon-connector): 89 tests passed.
- Behavior changed:
- [ ] No.
- [x] Yes. KEY_DYNAMIC global-index state is stored in bounded RocksDB
instead of an unbounded on-heap map.
- 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]