Github user jiangxb1987 commented on a diff in the pull request: https://github.com/apache/spark/pull/20026#discussion_r158260332 --- Diff: core/src/main/java/org/apache/spark/io/NioBufferedFileInputStream.java --- @@ -61,6 +61,7 @@ private boolean refill() throws IOException { nRead = fileChannel.read(byteBuffer); } if (nRead < 0) { + byteBuffer.flip(); --- End diff -- Sorry I don't get your point, would you mind share the link to the code block you mention to? Thanks!
--- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org