thswlsqls opened a new pull request, #8689: URL: https://github.com/apache/paimon/pull/8689
### Purpose fix #8687 - `VFSInputStream.read()` delegates to `read(oneByteBuf, 0, 1)`, which already calls `statistics.incrementBytesRead(...)`, then incremented again — so each single-byte read counted 2 bytes. - This inflated `FileSystem.Statistics.bytesRead` (the Spark/MapReduce "Bytes Read" counter). - Removed the redundant increment so single-byte reads count once, matching the bulk `read(byte[], int, int)` and pread paths in the same class. ### Tests - Added `VFSInputStreamTest#testSingleByteReadCountsBytesOnce` (regression guard: `getBytesRead() == N`, previously `2N`), `#testBulkReadCountsBytesOnce`, and `#testReadAtEofDoesNotCount`. - `mvn -pl paimon-vfs/paimon-vfs-hadoop -DfailIfNoTests=false clean install` — 27 tests passed (JDK 11, no engine profile). -- 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]
