xianjingfeng commented on code in PR #2177:
URL:
https://github.com/apache/incubator-uniffle/pull/2177#discussion_r1800315831
##########
server/src/main/java/org/apache/uniffle/server/buffer/ShuffleBufferWithLinkedList.java:
##########
@@ -98,11 +100,11 @@ public synchronized ShuffleDataFlushEvent toFlushEvent(
event.addCleanupCallback(
() -> {
this.clearInFlushBuffer(event.getEventId());
- spBlocks.forEach(spb -> spb.getData().release());
+ inFlushedQueueBlocks.forEach(spb -> spb.getData().release());
inFlushSize.addAndGet(-event.getSize());
});
- inFlushBlockMap.put(eventId, new LinkedHashSet<>(inFlushedQueueBlocks));
- blocks.clear();
+ inFlushBlockMap.put(eventId, new LinkedHashSet<>(blocks));
Review Comment:
```suggestion
inFlushBlockMap.put(eventId, inFlushedQueueBlocks);
```
--
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]