-
-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FIXED] Clear all pre-acks for seq upon removing message (#6325)
If a message in a stream was removed/erased/purged the pre-acks would not be cleared for that sequence. This meant that pre-acks could remain and potentially result in a memory leak. There was also a call to `mset.clearAllPreAcks(last)` where the write lock was not held. Updated `mset.setLastSeq` to require a write lock to already be held, so we don't need to keep locking/unlocking multiple times. Also de-flakes `TestNoRaceJetStreamClusterUnbalancedInterestMultipleConsumers` due to: - remaining pre-acks that should have been cleared - messages being removed asynchronously due to going through proposals (added `checkFor`) Signed-off-by: Maurice van Veen <[email protected]>
- Loading branch information
Showing
4 changed files
with
168 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters