Skip to content

Conversation

yaauie
Copy link
Contributor

@yaauie yaauie commented Jun 26, 2025

In some configurations, it would be helpful for the input plugin's consumers to unsubscribe from their topics during shutdown, especially with sticky-type partition assignment strategies with non-static group membership.

This would allow the consumer's assigned partitions to be immediately eligible to be assigned to another member of the group, instead of needing to wait out broker-side timeouts.

This patch introduces a new option on_shutdown, with two options:

  • release: revoke all current subscriptions, releasing the assigned partitions so that they can be immediately assigned to another member of the group
  • abandon (backward-compatible default): leave the subscription in-tact when closing, allowing broker to begin reassigning these partitions in its own time

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.

1 participant