Skip to content

Commit 7590124

Browse files
author
flashJd
committed
[MINOR] fix progress field calculate logic in HoodieLogRecordReader
1 parent ce4330d commit 7590124

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hudi-common/src/main/java/org/apache/hudi/common/table/log/AbstractHoodieLogRecordReader.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ private void processQueuedBlocksForInstant(Deque<HoodieLogBlock> logBlocks, int
480480
}
481481
}
482482
// At this step the lastBlocks are consumed. We track approximate progress by number of log-files seen
483-
progress = numLogFilesSeen - 1 / logFilePaths.size();
483+
progress = (numLogFilesSeen - 1) / logFilePaths.size();
484484
}
485485

486486
private ClosableIterator<IndexedRecord> getRecordsIterator(HoodieDataBlock dataBlock, Option<KeySpec> keySpecOpt) throws IOException {

0 commit comments

Comments
 (0)