alexeykudinkin commented on code in PR #6830:
URL: https://github.com/apache/hudi/pull/6830#discussion_r1086178778
##########
hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieLogFileReader.java:
##########
@@ -282,45 +285,50 @@ private HoodieLogBlock createCorruptBlock(long
blockStartPos) throws IOException
}
private boolean isBlockCorrupted(int blocksize) throws IOException {
- long currentPos = inputStream.getPos();
- long blockSizeFromFooter;
+ if (!StorageSchemes.isWriteTransactional(fs.getScheme())) {
Review Comment:
Let's invert this conditional and return early instead to reduce amount of
code we need to change
--
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]