masteryhx commented on code in PR #20306:
URL: https://github.com/apache/flink/pull/20306#discussion_r931875189
##########
flink-dstl/flink-dstl-dfs/src/main/java/org/apache/flink/changelog/fs/StateChangeFsUploader.java:
##########
@@ -168,7 +168,7 @@ private UploadTasksResult upload(Path path,
Collection<UploadTask> tasks) throws
wrappedStreamClosed = true;
}
} finally {
- if (!wrappedStreamClosed) {
+ if (!wrappedStreamClosed || compression) {
fsStream.close();
}
Review Comment:
I think your analysis is right.
I have modified it and found it works.
Thanks a lot!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]