You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@paimon.apache.org by "LuciferYang (via GitHub)" <gi...@apache.org> on 2026/09/12 23:58:19 UTC
[PR] [common] Bound the memory cache's file-size memo map [paimon]
LuciferYang opened a new pull request, #9775:
URL: https://github.com/apache/paimon/pull/9775
### Purpose
close #9774
`LocalMemoryCacheManager` memoized file sizes in an unbounded map with only prefix invalidation removing entries; in memory-cache mode a job reading many distinct whitelisted files grew the heap without limit.
Cap the memo at 65536 entries with least-recently-accessed eviction, guarded by the manager's existing lock (the map becomes an access-ordered `LinkedHashMap`, and `invalidate`'s `removeIf` moves under the lock). A dropped memo only costs one extra `getFileStatus` on the next open.
### Tests
`CachingFileIOTest#fileSizeMemoIsBounded`: 70001 memos → the eldest is evicted (`getFileSize` returns -1), the newest is retained, and prefix invalidation still works. RED verified on master (no eviction; first memo retained).
### API and Format
No format/API change. Disk mode's file-size memo has the same unbounded shape and is left for a follow-up.
### Documentation
None.
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [common] Bound the file-size memo in both local cache managers [paimon]
Posted by "LuciferYang (via GitHub)" <gi...@apache.org>.
LuciferYang commented on PR #9775:
URL: https://github.com/apache/paimon/pull/9775#issuecomment-5658337324
Thank you @JingsongLi
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] [common] Bound the file-size memo in both local cache managers [paimon]
Posted by "JingsongLi (via GitHub)" <gi...@apache.org>.
JingsongLi merged PR #9775:
URL: https://github.com/apache/paimon/pull/9775
--
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: issues-unsubscribe@paimon.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org