jackylee-ch opened a new pull request, #9593: URL: https://github.com/apache/paimon/pull/9593
### Purpose `CachingSeekableInputStream.readRemote` fills a block with a private `readFully` that breaks out of its loop on EOF and returns the partially filled buffer, zero-padded. `readBlock` hands that buffer to `cache.putBlock`, so one short remote read becomes a durable wrong answer — persisted to disk under `LocalDiskCacheManager` — for every later read of the block. The `VectoredReadable` branch two lines above already uses `preadFully`, which throws. Use `IOUtils.readFully`, already imported here, and drop the local copy. ### Tests `CachingFileIOTest#testShortRemoteReadIsNotCachedAsZeroPaddedBlock`. Written with Claude Code; reasoning and verification are mine. -- 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]
