thswlsqls opened a new issue, #8687: URL: https://github.com/apache/paimon/issues/8687
**Search before asking** - [x] I searched in the [issues](https://github.com/apache/paimon/issues) and found nothing similar. **Paimon version** master @ b7df2b487 **Compute Engine** Engine-agnostic (PVFS Hadoop FileSystem) **Minimal reproduce step** 1. Open a `pvfs://` path through the Hadoop `FileSystem` API and read it one byte at a time via `FSDataInputStream.read()`. 2. Inspect `FileSystem.Statistics.getBytesRead()` for the `pvfs` scheme. `VFSInputStream.read()` (`paimon-vfs/paimon-vfs-hadoop/src/main/java/org/apache/paimon/vfs/hadoop/VFSInputStream.java` line 81) delegates to `read(oneByteBuf, 0, 1)`, and that `read(byte[], int, int)` override already calls `statistics.incrementBytesRead(...)`. `read()` then increments the statistics a second time. **What doesn't meet your expectations?** Expected: reading N bytes reports `getBytesRead() == N`. Actual: single-byte reads report `2N`, inflating the Spark/MapReduce "Bytes Read" counter. The bulk `read(byte[], int, int)` and pread paths count exactly once, so this is also an internal inconsistency. **Anything else?** N/A **Are you willing to submit a PR?** - [x] I'm willing to submit a PR! -- 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]
