You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@uniffle.apache.org by "advancedxy (via GitHub)" <gi...@apache.org> on 2023/02/08 02:23:48 UTC

[GitHub] [incubator-uniffle] advancedxy commented on a diff in pull request #558: [Followup #249] Cleanup code and unify interfaces

advancedxy commented on code in PR #558:
URL: https://github.com/apache/incubator-uniffle/pull/558#discussion_r1099574096


##########
server/src/main/java/org/apache/uniffle/server/ShuffleFlushManager.java:
##########
@@ -361,8 +362,9 @@ private void addPendingEventsInternal(PendingShuffleFlushEvent event) {
     }
   }
 
-  public void removeResourcesOfShuffleId(String appId, int shuffleId) {
-    Optional.ofNullable(committedBlockIds.get(appId)).ifPresent(x -> x.remove(shuffleId));
+  public void removeResourcesOfShuffleId(String appId, Collection<Integer> shuffleIds) {

Review Comment:
   IMO, this should be called `removeResourceOfShuffleIds`? And another singular method `removeResourceOfShuffleId` should be added?



-- 
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: issues-unsubscribe@uniffle.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@uniffle.apache.org
For additional commands, e-mail: issues-help@uniffle.apache.org