Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IMPROVED] Consumer delete time on interest policy streams with a large number of messages. #5547

Merged
merged 1 commit into from
Jun 16, 2024

Conversation

derekcollison
Copy link
Member

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]

…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]>
@derekcollison derekcollison requested a review from a team as a code owner June 16, 2024 20:22
@derekcollison derekcollison merged commit 763301d into main Jun 16, 2024
4 checks passed
@derekcollison derekcollison deleted the acknone-interest branch June 16, 2024 20:59
wallyqs added a commit that referenced this pull request Jun 17, 2024
Includes the following:

* #5524
* #5528
* #5533
* #5535
* #5538
* #5543
* #5546
* #5545
* #5547
* #5548
* #5530 (**BETA**)
* #5549

The following PRs were **NOT** included as they were later reverted:

* #5532

Signed-off-by: Neil Twigg <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants