You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@iceberg.apache.org by "ConeyLiu (via GitHub)" <gi...@apache.org> on 2023/04/10 09:10:07 UTC

[GitHub] [iceberg] ConeyLiu commented on a diff in pull request #7298: Bug Fix GCSInputStream Single Byte Read

ConeyLiu commented on code in PR #7298:
URL: https://github.com/apache/iceberg/pull/7298#discussion_r1161567793


##########
gcp/src/main/java/org/apache/iceberg/gcp/gcs/GCSInputStream.java:
##########
@@ -113,11 +113,12 @@ public int read() throws IOException {
     singleByteBuffer.position(0);
 
     pos += 1;
-    channel.read(singleByteBuffer);
+    if (channel.read(singleByteBuffer) == -1)

Review Comment:
   Maybe add some UTs to cover this.



-- 
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: issues-unsubscribe@iceberg.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@iceberg.apache.org
For additional commands, e-mail: issues-help@iceberg.apache.org