Skip to content

Commit

Permalink
follow by rickyma
Browse files Browse the repository at this point in the history
  • Loading branch information
zuston committed Apr 11, 2024
1 parent f6c7b12 commit 42766c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -771,9 +771,7 @@ public void removeResources(String appId, boolean checkAppExpired) {
partitionsToBlockIds.remove(appId);
shuffleBufferManager.removeBuffer(appId);
shuffleFlushManager.removeResources(appId);

storageManager.removeResources(new AppPurgeEvent(appId, shuffleTaskInfo.getUser()));

if (shuffleTaskInfo.hasHugePartition()) {
ShuffleServerMetrics.gaugeAppWithHugePartitionNum.dec();
ShuffleServerMetrics.gaugeHugePartitionNum.dec(shuffleTaskInfo.getHugePartitionSize());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ public void removeShuffleDataWithHdfsTest() throws Exception {
assertNotNull(shuffleBufferManager.getBufferPool().get(appId).get(1));

// the shufflePurgeEvent only will delete the children folders
// Once the app is expired, all the app folder should be deleted.
// Once the app is expired, all the app folders should be deleted.
shuffleTaskManager.removeResources(appId, false);
assertFalse(fs.exists(new Path(appBasePath)));
}
Expand Down Expand Up @@ -534,7 +534,7 @@ public void removeShuffleDataWithLocalfileTest() throws Exception {
}

// the shufflePurgeEvent only will delete the children folders
// Once the app is expired, all the app folder should be deleted.
// Once the app is expired, all the app folders should be deleted.
shuffleTaskManager.removeResources(appId, false);
for (String path : conf.get(ShuffleServerConf.RSS_STORAGE_BASE_PATH)) {
String appPath = path + "/" + appId;
Expand Down

0 comments on commit 42766c8

Please sign in to comment.