Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

Commit

Permalink
Fix the regression for #1749 (#2024)
Browse files Browse the repository at this point in the history
### Motivation

#1923 removes the completion for
the produce purgatory in #1749.

### Modification

Added back the logic to check and complete the produce purgatory.
  • Loading branch information
BewareMyPower authored Oct 31, 2023
1 parent db4a9ad commit aa2f171
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ public CompletableFuture<Map<TopicPartition, ProduceResponse.PartitionResponse>>
return;
}
if (restTopicPartitionNum == 0) {
// If all tasks are sent, cancel the timer tasks to avoid full gc or oom
producePurgatory.checkAndComplete(new DelayedOperationKey
.TopicPartitionOperationKey(topicPartition));
complete.run();
}
};
Expand Down

0 comments on commit aa2f171

Please sign in to comment.