Skip to content

fix: KRaft shutdown#982

Draft
NickLarsenNZ wants to merge 7 commits into
mainfrom
fix/kraft-shutdown-bug
Draft

fix: KRaft shutdown#982
NickLarsenNZ wants to merge 7 commits into
mainfrom
fix/kraft-shutdown-bug

Conversation

@NickLarsenNZ

@NickLarsenNZ NickLarsenNZ commented Jul 3, 2026

Copy link
Copy Markdown
Member

Note

I worked on this some months ago, and have forgotten where I got to.
The topic has come up again, so I pushed WIP changes to share.

Controllers should be shutdown after brokers. But when brokers are shutdown first, the reconciler gets stuck due to (something about failing to generate the discovery configmap, maybe because there would be no brokers).

2026-05-11T12:36:48.763153Z ERROR stackable_operator::logging::controller: Failed to reconcile object controller.name="kafkacluster.kafka.stackable.tech" error=reconciler for object KafkaCluster.v1alpha1.kafka.stackable.tech/test-kafka.kuttl-test-large-lobster failed error.sources=[failed to build configmap, no Kraft controllers found to build]

This ensures Kafka brokers don't hang when kraft controlers are shutdown on namespace deletion by kuttl
kuttl seems to track cluster scoped resources and deletes them, leaving other tests running in parallel to fail.
Without this, scaling brokers to 0 blocks reconciliation (so things like controller replicas being set to 0 hangs)
…This is just to check that the code is working
@NickLarsenNZ NickLarsenNZ self-assigned this Jul 3, 2026
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