You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "ZiyueGuan (Jira)" <ji...@apache.org> on 2021/11/03 05:48:00 UTC

[jira] [Updated] (HUDI-2665) Overflow of DataOutputStream may lead to corrupted log block

     [ https://issues.apache.org/jira/browse/HUDI-2665?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

ZiyueGuan updated HUDI-2665:
----------------------------
    Priority: Minor  (was: Major)

> 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
>
> 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)