Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
FMX committed Apr 2, 2024
1 parent 7513106 commit bc4fce8
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,15 @@ private MemoryManager(CelebornConf conf, StorageManager storageManager) {
|| currentServingState() != ServingState.NONE_PAUSED) {
try {
if (!committedWriters.isEmpty()) {
committedWriters.remove(0).evict();
PartitionDataWriter writer = committedWriters.remove(0);
if (!writer.getMemoryFileInfo().hasReader()) {
writer.evict();
}
} else if (!unCommittedWriters.isEmpty()) {
unCommittedWriters.remove(0).evict();
PartitionDataWriter writer = unCommittedWriters.remove(0);
if (!writer.getMemoryFileInfo().hasReader()) {
writer.evict();
}
} else {
break;
}
Expand Down

0 comments on commit bc4fce8

Please sign in to comment.