-
Notifications
You must be signed in to change notification settings - Fork 83
Kafka Source still shown as ready when topic is deleted #760
Comments
@devguyio @matzew @travis-minke-sap how do you handle this scenario in the channel implementations? I wonder if there is something we could leverage. |
Yeah, interesting... We (distributed channel) generally haven't done anything special to detect / correct such external manual deletion of Kafka Topics. We have just assumed that the KafkaChannel CRD is the "owner" of the Topic, and that users are expected not to mess with them out-of-band. Without trying it out... I would assume that the Receiver / Dispatcher would start logging errors and that if the controller restarted it would recreate the Topic. Not sure of the Status in the interim but it probably isn't handled accurately. |
I've also noticed that deleting a
|
I made a very quick attempt at reproducing this using Strimzi but didn't see the same behavior. If I understand correctly the error is caused by deleting a KafkaChannel whose backing Kafka Topic has already been deleted? Generally the logic should handle this case as a no-op (meaning... the topic should be deleted and it doesn't exist so there's nothing to do). The actual failure above is most likely that the Reconciler's Kafka AdminClient is nil when it's trying to delete the Topic. The Reconciler re-creates the the AdminClient on every reconciliation loop (no re-use due to Sarama client timeout issues). Earlier in the logs do you see an error with If you can reproduce the panic, we're definitely interested in understanding and fixing it - probably should create a separate Issue detailing the reproduction steps, etc... thanks! |
We encountered the same...I am able to replicate if I nuke the entire kafka cluster...the Admin Client then fails with the above |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
This issue is stale because it has been open for 90 days with no |
/remove-lifecycle stale |
Describe the bug
When user deletes the topic, Kafkasource status CR shows error but overall status is still shown as ready
Expected behavior
We should have the overall ready status show the precise error
To Reproduce
Create a Kafka source and make sure it is ready and receiving events and then delete the topic
Knative release version
Additional context
Add any other context about the problem here such as proposed priority
The text was updated successfully, but these errors were encountered: