-
Notifications
You must be signed in to change notification settings - Fork 784
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add synchronized blocks around the deadLetters collection
To further protect the InMemorySequencedDeadLetterQueue against concurrent changes on the dead-letters collection, we should add some synchronization around it when accessing. Main point of attention here are the evict and requeue operations which might remove a sequence or bring it back. Due to this, contains and enqueue should also synchronize The process operation does not receive any synchronized-blocks as it works through the takenSequences set. #2021
- Loading branch information
Showing
1 changed file
with
23 additions
and
16 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