Skip to content

Conversation

@acogoluegnes
Copy link
Contributor

Not only when it is removed explicitly by the client. This is necessary to make sure the consumer record is removed from the management ETS tables (consumer_stats) and to avoid ghost consumers.

For other protocols like AMQP 091, the consumer_status ETS table is cleaned up when a channel goes down, but there is no channel concept in the stream protocol.

This is not consistent with other protocols or queue implementations (which emits the event only on explicit consumer cancellation) but is necessary to clean up stats correctly.

References #13092

Not only when it is removed explicitly by the client. This is necessary
to make sure the consumer record is removed from the management ETS
tables (consumer_stats) and to avoid ghost consumers.

For other protocols like AMQP 091, the consumer_status ETS table is
cleaned up when a channel goes down, but there is no channel concept in
the stream protocol.

This is not consistent with other protocols or queue implementations
(which emits the event only on explicit consumer cancellation)
but is necessary to clean up stats correctly.

References #13092
@acogoluegnes acogoluegnes added this to the 4.1.1 milestone May 28, 2025
@michaelklishin michaelklishin modified the milestones: 4.1.1, 4.2.0 May 29, 2025
@michaelklishin michaelklishin merged commit b09e2f2 into main May 29, 2025
555 of 558 checks passed
@michaelklishin michaelklishin deleted the stream-plugin-emit-consumer-deleted branch May 29, 2025 06:24
michaelklishin added a commit that referenced this pull request Jun 2, 2025
Always emit consumer_deleted event when stream consumer goes away (backport #13970)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants