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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
