Skip to content

Conversation

@fvaleri
Copy link
Contributor

@fvaleri fvaleri commented Nov 21, 2025

This patch fixes a tight reconnection loop that may happen during shutdown.

  1. Node 1 and 2 (brokers) request controlled shutdown
  2. Node 0 (controller) grants the shutdown
  3. Node 0 itself shuts down (RaftManager shutdown)
  4. Node 1 and 2 continue trying to heartbeat to the now-dead controller
  5. They get stuck in this reconnection loop because the NodeToControllerRequestThread is still running and hasn't been shut down properly

@github-actions github-actions bot added triage PRs from the community core Kafka Broker small Small PRs labels Nov 21, 2025
This patch fixes a tight reconnection loop that may happen during shutdown.

1. Node 1 and 2 (brokers) request controlled shutdown
2. Controller grants the shutdown
3. Controller itself shuts down (RaftManager shutdown)
4. Node 1 and 2 continue trying to heartbeat to the now-dead controller
5. They get stuck in this reconnection loop because the NodeToControllerRequestThread is still running and hasn't been shut down properly

Signed-off-by: Federico Valeri <[email protected]>
@fvaleri fvaleri marked this pull request as draft November 21, 2025 15:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core Kafka Broker small Small PRs triage PRs from the community

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant