-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix topicId status update #10491
Fix topicId status update #10491
Conversation
@strimzi/maintainers can we run STs on this? Thanks. |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @fvaleri
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Outdated
Show resolved
Hide resolved
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Outdated
Show resolved
Hide resolved
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Outdated
Show resolved
Hide resolved
topic-operator/src/main/java/io/strimzi/operator/topic/BatchingTopicController.java
Outdated
Show resolved
Hide resolved
Failed test is unrelated: [ERROR] io.strimzi.operator.cluster.operator.assembly.KafkaConnectorIT.testConnectorIsAutoRestarted(VertxTestContext)
[ERROR] Run 1: KafkaConnectorIT.testConnectorIsAutoRestarted(VertxTestContext) java.lang.AssertionError:
Expected: is "RESTARTING"
but: was "UNASSIGNED"
[ERROR] Run 2: KafkaConnectorIT.testConnectorIsAutoRestarted(VertxTestContext) java.lang.AssertionError:
Expected: is "RESTARTING"
but: was "UNASSIGNED"
[ERROR] Run 3: KafkaConnectorIT.testConnectorIsAutoRestarted(VertxTestContext) java.lang.AssertionError:
Expected: is "RESTARTING"
but: was "UNASSIGNED" |
/packit test --labels regression |
@tombentley system tests looks mostly good with the exception of OpenTelemetryST, which is a known issue unrelated to this PR. Let me know if you are good with latest changes. Thanks. |
/packit test --labels regression |
The KafkaTopic.status.topicId keeps the old value when the topic is recreated in Kafka while the reconciliation is paused/disabled, or the operator is not running. This change adds the topicId when the KafkaTopic is managed and topicId is not set, and removes the topicId when KafkaTopic is paused or unmanaged. Signed-off-by: Federico Valeri <[email protected]>
Signed-off-by: Federico Valeri <[email protected]>
/packit test --labels regression |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thanks @fvaleri
Thanks, I think we are good to go. |
/azp run regression |
Azure Pipelines successfully started running 1 pipeline(s). |
Failed tests are unrelated and succeeded on packit. |
Type of change
Bugfix
Description
The KafkaTopic.status.topicId keeps the old value when the topic is recreated in Kafka while the reconciliation is paused/disabled, or the operator is not running.
This change adds the topicId when the KafkaTopic is managed and topicId is not set, and removes the topicId when KafkaTopic is paused or unmanaged.
Should close #10467.
Checklist