bvaradar commented on code in PR #9789:
URL: https://github.com/apache/hudi/pull/9789#discussion_r1376867703
##########
hudi-common/src/main/java/org/apache/hudi/io/storage/HoodieAvroHFileReader.java:
##########
@@ -684,6 +685,10 @@ private static class RecordIterator implements
ClosableIterator<IndexedRecord> {
public boolean hasNext() {
try {
// NOTE: This is required for idempotency
+ if (eof) {
+ return false;
+ }
Review Comment:
This is being handled correctly in KeyPrefixIterator but is missing in this
RecordIterator. The fix is to bring the change also to this class.
--
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]