[
https://issues.apache.org/jira/browse/HUDI-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
sivabalan narayanan updated HUDI-2665:
--------------------------------------
Fix Version/s: 0.10.0
> 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
> Assignee: ZiyueGuan
> Priority: Minor
> Labels: pull-request-available
> Fix For: 0.10.0
>
>
> 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.20.1#820001)