otterc commented on a change in pull request #33078: URL: https://github.com/apache/spark/pull/33078#discussion_r660328969
########## File path: common/network-shuffle/src/main/java/org/apache/spark/network/shuffle/RemoteBlockPushResolver.java ########## @@ -567,7 +598,8 @@ public void onData(String streamId, ByteBuffer buf) throws IOException { // memory, while still providing the necessary guarantee. synchronized (partitionInfo) { Map<Integer, AppShufflePartitionInfo> shufflePartitions = - mergeManager.partitions.get(partitionInfo.appShuffleId); + mergeManager.appsShuffleInfo.get(partitionInfo.appId).partitions Review comment: What if an executor registers with a new attempt between multiple `onData()` invocations on the same streamCallback? or between `onData()` and `onComplete()` on the streamCallback? Looks like `AppShufflePartitionInfo` should now also hold the reference to `shufflePartitions` (or the `AppShuffleInfo` instance) instead of referencing `mergeManager.appShuffleInfo`. This needs a UT as well. We just need to trigger registerExecutor with new attempt between callbacks on the same stream. -- 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: reviews-unsubscr...@spark.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org For additional commands, e-mail: reviews-h...@spark.apache.org