beliefer commented on code in PR #43371:
URL: https://github.com/apache/spark/pull/43371#discussion_r1360573952
##########
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/RemoteBlockPushResolver.java:
##########
@@ -1933,6 +1927,49 @@ public RoaringBitmap getMapTracker() {
int getNumIOExceptions() {
return numIOExceptions;
}
+
+ private record ResourceCleaner(
+ File dataFile,
+ FileChannel dataChannel,
+ MergeShuffleFile indexFile,
+ MergeShuffleFile metaFile,
+ AppAttemptShuffleMergeId appAttemptShuffleMergeId,
+ int reduceId) implements Runnable {
+
+ @Override
+ public void run() {
+ closeAllFiles(dataChannel,
+ indexFile, metaFile, appAttemptShuffleMergeId, reduceId);
Review Comment:
```suggestion
closeAllFiles(dataChannel, indexFile, metaFile,
appAttemptShuffleMergeId, reduceId);
```
--
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]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]