-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve delete time of consumers on interest policy streams with a la…
…rge number of messages. When we delete a consumer we need to simulate acking all messages from the ackfloor to the last sequence in the stream. If the consumer is new and only consumed and acked and few messages, or none, this could be costly and cause operational pauses for the parent stream. If the number of sequences we would need to process is obver a threshold we will let the checkInterestState() do the cleanup in a separate Go routine. Signed-off-by: Derek Collison <[email protected]>
- Loading branch information
1 parent
59dfbcc
commit d183273
Showing
3 changed files
with
334 additions
and
6 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