Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
-
None
Description
768726 [Executor task launch worker-2] ERROR org.apache.hudi.common.table.log.AbstractHoodieLogRecordScanner - Got exception when reading log file
org.apache.hudi.exception.CorruptedLogFileException: HoodieLogFile
could not be read. Did not find the magic bytes at the start of the block
at org.apache.hudi.common.table.log.HoodieLogFileReader.readMagic(HoodieLogFileReader.java:313)
at org.apache.hudi.common.table.log.HoodieLogFileReader.hasNext(HoodieLogFileReader.java:295)
at org.apache.hudi.common.table.log.HoodieLogFormatReader.hasNext(HoodieLogFormatReader.java:103)
I did extensive debugging and still unclear on why it is happening. It might be issue with GCS libraries themselves. The fix that is working:
In: HoodieLogFileReader made
// private final byte[] magicBuffer = new byte[6];
non static. I'm not sure why it is actually static in the first place as it is inviting a race.
Also in HoodieLogFileReader:
added
// fsDataInputStream.seek(0);
added right after stream creation in the constructor.
Attachments
Attachments
Issue Links
- links to