Skip to content

Commit

Permalink
fix incompatible changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Oct 18, 2024
1 parent b5eb68d commit eb6456c
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import java.util.concurrent.atomic.LongAdder;
import java.util.stream.Collectors;

import scala.Int;
import scala.Option;
import scala.Tuple2;

Expand Down Expand Up @@ -129,7 +130,13 @@ public void updateUnregisterShuffleMeta(String shuffleKey) {
}

public void updateBatchUnregisterShuffleMeta(List<String> shuffleKeys) {
registeredShuffle.removeAll(shuffleKeys);
for (String shuffleKey : shuffleKeys) {
Tuple2<String, Object> appIdShuffleId = Utils.splitShuffleKey(shuffleKey);
String appId = appIdShuffleId._1;
if (registeredAppAndShuffles.containsKey(appId)) {
registeredAppAndShuffles.get(appId).remove((Int) appIdShuffleId._2);
}
}
}

public void updateAppHeartbeatMeta(String appId, long time, long totalWritten, long fileCount) {
Expand Down

0 comments on commit eb6456c

Please sign in to comment.