Finalizer for KafkaChannel throws "no topic annotated on channel" #3289
Labels
area/control-plane
kind/bug
Categorizes issue or PR as related to a bug.
triage/accepted
Issues which should be fixed (post-triage)
Describe the bug
When a KafkaChannel is created with Knative version older than 1.10 and after upgrade to 1.10 the channel or namespace is deleted quickly the reconciler hangs and can't delete the KafkaChannel.
The KafkaChanel is missing annotations in status such as this one because the reconciler didn't have enough time to add it.
As a result, this error is repeatedly thrown in kafka-controller here
When the KafkaChanel is marked for deletion the reconciler doesn't try to reconcile the kind anymore and wants to finalize/delete it. So it will never add the annotations in status and will also hang on deleting the resource due to the error. These annotations are new in 1.10.
Expected behavior
When KafkaChannel is created before 1.10, I can upgrade to 1.10 and delete the namespace at any time. The resource should not hang there.
To Reproduce
Knative release version
1.10
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: