zhangstar333 commented on code in PR #65318:
URL: https://github.com/apache/doris/pull/65318#discussion_r3535105778


##########
fe/fe-filesystem/fe-filesystem-spi/src/main/java/org/apache/doris/filesystem/spi/S3CompatibleFileSystem.java:
##########
@@ -555,14 +555,13 @@ private class ObjectStorageFileIterator implements 
FileIterator {
 
         @Override
         public boolean hasNext() throws IOException {
-            if (bufferIdx < buffer.size()) {
-                return true;
-            }
-            if (done) {
-                return false;
+            while (bufferIdx >= buffer.size()) {
+                if (done) {
+                    return false;
+                }
+                fetchNextPage();
             }
-            fetchNextPage();
-            return bufferIdx < buffer.size();
+            return true;
         }

Review Comment:
   ok



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


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to