Skip to content

Comments

Consumer inactive threshold cleanup should stop when consumer stops#7799

Merged
neilalexander merged 1 commit intomainfrom
neil/deletenotactiveqch
Feb 5, 2026
Merged

Consumer inactive threshold cleanup should stop when consumer stops#7799
neilalexander merged 1 commit intomainfrom
neil/deletenotactiveqch

Conversation

@neilalexander
Copy link
Member

This avoids lingering goroutines.

Signed-off-by: Neil Twigg neil@nats.io

@neilalexander neilalexander requested a review from a team as a code owner February 5, 2026 14:16
Copy link
Member

@MauriceVanVeen MauriceVanVeen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@neilalexander neilalexander merged commit e422028 into main Feb 5, 2026
90 of 92 checks passed
@neilalexander neilalexander deleted the neil/deletenotactiveqch branch February 5, 2026 14:49
wallyqs pushed a commit to wallyqs/nats-server that referenced this pull request Feb 5, 2026
This test verifies that when a consumer is stopped while the
deleteNotActive goroutine is in its retry loop, the goroutine
properly exits via the consumer's quit channel (o.qch).

The test creates a clustered consumer with a short InactiveThreshold,
waits for it to become inactive (triggering deleteNotActive), and
then explicitly deletes the consumer via API. This exercises the
new code path that monitors o.qch in the select loop.

Relates to PR nats-io#7799 which fixes lingering goroutines when a consumer
is deleted by another code path while deleteNotActive is retrying.

https://claude.ai/code/session_01LubvjBKycBMMi3kDUiaMYb
neilalexander added a commit that referenced this pull request Feb 16, 2026
Includes the following:

- #7780
- #7784
- #7782
- #7783
- #7787
- #7789
- #7793
- #7797
- #7798
- #7799
- #7790
- #7805
- #7810
- #7811
- #7812
- #7809
- #7724
- #7815
- #7816
- #7818
- #7819
- #7820
- #7795
- #7825
- #7828
- #7835
- #7837

Signed-off-by: Neil Twigg <neil@nats.io>
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