lsyldliu commented on a change in pull request #4181:
URL: https://github.com/apache/hudi/pull/4181#discussion_r760848483
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieLogFileReader.java
##########
@@ -284,7 +284,7 @@ private HoodieLogBlock createCorruptBlock() throws
IOException {
long contentPosition = inputStream.getPos();
byte[] corruptedBytes = HoodieLogBlock.readOrSkipContent(inputStream,
corruptedBlockSize, readBlockLazily);
return HoodieCorruptBlock.getBlock(logFile, inputStream,
Option.ofNullable(corruptedBytes), readBlockLazily,
- contentPosition, corruptedBlockSize, corruptedBlockSize, new
HashMap<>(), new HashMap<>());
+ contentPosition, corruptedBlockSize, nextBlockOffset - 1, new
HashMap<>(), new HashMap<>());
}
Review comment:
Now, I also think so.
--
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]