[Bug]: Transactional handling of resolution of multiple resources managing the same topic #12133
rolandjohann
started this conversation in
General
Replies: 1 comment 5 replies
-
|
Hello @rolandjohann. You can use the unmanage annotation to delete a KafkaTopic custom resource without deleting the actual topic in Kafka. After that, the other KafkaTopic will be reconciled without topic recreation. https://strimzi.io/docs/operators/latest/deploying#proc-converting-managed-topics-str |
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Bug Description
When two resources manage the same topic, the second resource will be handled as conflict by the topic operator. Deleting the first resource leads to deletion of the topic and at the next reconciliation run the second resource seems to be evaluated again, the conflict is not present anymore and the topic will be recreated.
Question is if this is desired behavior or if we can improve it to be transactional by checking if conflicting resources are present on first resource delete and not perform the actual topic delete at kafka then.
Cause of this use case is that we hand over the ownership of the topic resource to another team, also at kubernetes level, which resulted in topic deletion and recreation.
Steps to reproduce
$ watch './bin/kafka-topics.sh [...] --list | grep poc-test-topic'poc-test-topicis presentpoc-test-topic$ watch ...shows that kafka topic has been deleted at kafkapoc-test-topic-different-but-sameshows state is not ready$watch ...againExpected behavior
$ watch './bin/kafka-topics.sh [...] --list | grep poc-test-topic'poc-test-topicis presentpoc-test-topic$ watch ...still shows the topic since it is not deletedpoc-test-topic-different-but-sameshows state to be readyStrimzi version
0.48.0
Kubernetes version
v1.32.5
Installation method
Helm chart
Infrastructure
Azure AKS
Configuration files and logs
No response
Additional context
No response
Beta Was this translation helpful? Give feedback.
All reactions