zhouyejoe commented on code in PR #35906:
URL: https://github.com/apache/spark/pull/35906#discussion_r881264506


##########
common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/RemoteBlockPushResolver.java:
##########
@@ -342,6 +404,30 @@ void closeAndDeletePartitionFilesIfNeeded(
     if (cleanupLocalDirs) {
       deleteExecutorDirs(appShuffleInfo);
     }
+    cleanUpAppShuffleInfoInDB(appShuffleInfo);
+  }
+
+  void cleanUpAppShuffleInfoInDB(AppShuffleInfo appShuffleInfo) {
+    if (db != null) {
+      try {
+        db.delete(dbAppAttemptPathsKey(appShuffleInfo.appId, 
appShuffleInfo.attemptId));
+        appShuffleInfo.shuffles
+          .forEach((shuffleId, shuffleInfo) -> 
shuffleInfo.shuffleMergePartitions
+            .forEach((shuffleMergeId, partitionInfo) -> {
+              synchronized (partitionInfo) {
+                if (shuffleInfo.isFinalized()) {
+                  cleanUpAppShufflePartitionInfoInDB(new AppShufflePartitionId(
+                    appShuffleInfo.appId, appShuffleInfo.attemptId, shuffleId,
+                      shuffleMergeId, -1));
+                }

Review Comment:
   This part does not apply after the simplified version.



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

Reply via email to