You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hudi.apache.org by "sivabalan narayanan (Jira)" <ji...@apache.org> on 2021/12/13 22:09:00 UTC

[jira] [Resolved] (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 ]

sivabalan narayanan resolved HUDI-2665.
---------------------------------------

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