ZiyueGuan created HUDI-2665:
-------------------------------

             Summary: Overflow of DataOutputStream may lead to corrupted log 
block
                 Key: HUDI-2665
                 URL: https://issues.apache.org/jira/browse/HUDI-2665
             Project: Apache Hudi
          Issue Type: Bug
            Reporter: ZiyueGuan


In HoodieLogFormatWriter, we use size() method of DataOutputStream to calculate 
the size of log block we write. However, this method only allows size no more 
than Integer.MAX_VALUE. When bytes we writen overflow, we will get a corrupted 
log block as the size of header is inconsistent with the one at footer

https://github.com/apache/hudi/blob/master/hudi-common/src/main/java/org/apache/hudi/common/table/log/HoodieLogFormatWriter.java



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to