LuciferYang opened a new issue, #9778:
URL: https://github.com/apache/paimon/issues/9778

   ### Bug description
   
   `HadoopSeekableInputStream.skipFully` (and its copies in every 
HadoopCompliantFileIO wrapper: azure, cosn, gs, jindo, obs, oss, s3) loops with
   
       while (bytes > 0) { bytes -= in.skip(bytes); }
   
   A blocking stream at end of file returns 0 from `skip`, so a small forward 
seek — the vectored-read seek helper skips gaps of up to 1 MiB instead of 
seeking — past a truncated or shorter-than-expected file spins the loop forever 
instead of failing the read.
   
   ### Expected behavior
   
   Throw `EOFException` when a skip call makes no progress, like Hadoop's own 
`IOUtils.skipFully` treats premature EOF.


-- 
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]

Reply via email to