[
https://issues.apache.org/jira/browse/FLINK-28602?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Roman Khachatryan closed FLINK-28602.
-------------------------------------
Assignee: Hangxiang Yu
Resolution: Fixed
Merged into master as e77d3a226bab6d06272976a742c225811dc3ca36,
into 1.15 as d5dc354dce663230b38973b285ff31b943da8fff.
> StateChangeFsUploader cannot close stream normally while enabling compression
> -----------------------------------------------------------------------------
>
> Key: FLINK-28602
> URL: https://issues.apache.org/jira/browse/FLINK-28602
> Project: Flink
> Issue Type: Bug
> Components: Runtime / State Backends
> Affects Versions: 1.15.1, 1.16.0
> Reporter: Hangxiang Yu
> Assignee: Hangxiang Yu
> Priority: Major
> Labels: pull-request-available
> Fix For: 1.16.0, 1.15.2
>
>
> While enabling compression, Changelog part will wrap output stream using
> StreamCompressionDecorator#decorateWithCompression.
> As the comment said, "IMPORTANT: For streams returned by this method, \{@link
> OutputStream#close()} is not propagated to the inner stream. The inner stream
> must be closed separately.".
> But StateChangeFsUploader will not close inner stream if wrapped stream has
> been closed.
> So the upload may not complete when enabling compression even if it returns
> success.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)