prashantwason commented on a change in pull request #2064:
URL: https://github.com/apache/hudi/pull/2064#discussion_r491324695
##########
File path:
hudi-common/src/main/java/org/apache/hudi/common/table/log/AbstractHoodieLogRecordScanner.java
##########
@@ -202,23 +202,21 @@ public void scan() {
LOG.info("Rolling back the last corrupted log block read
in " + logFile.getPath());
currentInstantLogBlocks.pop();
numBlocksRolledBack++;
- } else if (lastBlock.getBlockType() != CORRUPT_BLOCK
Review comment:
I have simplified the if-else conditions.
if checks for (lastBlock.getBlockType() == CORRUPT_BLOCK) so the else does
not need to check for the != part (which should be true if we reach the else
part.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]