rkhachatryan commented on code in PR #29065:
URL: https://github.com/apache/flink/pull/29065#discussion_r3936035265
##########
flink-runtime/src/main/java/org/apache/flink/runtime/checkpoint/channel/RecoveredChannelStateHandler.java:
##########
@@ -320,6 +332,25 @@ abstract class AbstractSpillingHandler extends
AbstractInputChannelRecoveredStat
this.maxSegmentSizeBytes = maxSegmentSizeBytes;
this.baseDir =
Paths.get(spillTmpDirectories[0], "flink-channel-spill-" +
UUID.randomUUID());
+ this.cancelables = checkNotNull(cancelables);
+ }
+
+ private void deleteSpillFiles() throws IOException {
+ IOException firstError = null;
+ for (Path file : files) {
Review Comment:
Can we have race conditions here? 🤔
I.e. a task in recovery is being cancelled; `files` is not updated yet by
the recovery; or the updates are not visible to the closing thread?
Maybe just delete the directory instead (if it's exclusive)? Or can this
cause some failure of the recovering thread?
--
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]