Samrat002 commented on code in PR #29890:
URL: https://github.com/apache/flink/pull/29890#discussion_r4657253331


##########
flink-filesystems/flink-s3-fs-native/src/main/java/org/apache/flink/fs/s3native/writer/NativeS3RecoverableFsDataOutputStream.java:
##########
@@ -327,6 +457,15 @@ private void releaseLocalResources() throws IOException {
                 collected = ExceptionUtils.firstOrSuppressed(e, collected);
             }
         }
+        for (PendingPartUpload upload : pendingUploads) {
+            // join() is not interruptible, and handle() turns a failed upload 
into a result.
+            upload.future.handle((ignored, error) -> null).join();

Review Comment:
    No. A timed or interruptible wait brings back the overwrite race from round 
1. The wait is  already bounded by the client's timeouts and retries, then by 
`task.cancellation.timeout`, which restarts the TaskManager. That restart is 
the safe outcome.



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

Reply via email to