-
Notifications
You must be signed in to change notification settings - Fork 225
KafkaChannel subscribers list ends up with duplicate subscribers for the same subscription. This results in duplicate dispatches. #1560
Comments
/assign |
@ntzlqx I tried to remove and create a sub again using a clean 0.17.3 setup, but i don't see any issue. Can you please provide a reproducer code/reproducer script? Can you post the log (in debug mode) of kafka-ch-controller & kafka-ch-dispatcher when the issue happens? |
I think knative/eventing#4042 is related here /cc @pierDipi |
here more context: https://knative.slack.com/archives/CR2141CGY/p1599849495058400 |
@matzew I'm not sure it's related to knative/eventing#4042, it seems more some corner case of the controller logic... |
Is this issue still relevant? |
I have not tested this... |
Thanks! |
Just tested...and did get a duplicate set of subscribers...interestingly not a complete set... |
Which version are you testing on? |
0.18 |
I just manually deleted the stale ones - I have 20 subscribers - 7 remained as duplicates with the old config |
I'm not sure how i can help you without any reproducer, I'm sorry 😞 Can you try to dig into the logs of the kafka channel controller and of eventing-controller to check if there's anything suspect? |
Sorry for the delay...I will try to capture the log from the controller now |
The steps i am following:
|
I got 8 duplicate subscribers out of 20 this time |
Please find the attached log... I can reproduce the issue at will as described above |
@devguyio is this related to the status thing you've been working on recently? Can you check it please? |
This might get fixed by knative-extensions/eventing-kafka#182 once it lands. |
This issue is stale because it has been open for 90 days with no |
Describe the bug
Duplicate messages are dispatched to the same knative function
Expected behavior
Events are not duplicated
To Reproduce
I believe the issue occurs upon manual deletion of a subscription, but could be also upon upgrade (not verified)
Another way to replicate: Edit the broker config to add delivery options. This results in recreating all subscriptions and respectively all subscribers are recreated. You will see duplicate subscribers added to the subscribers list of the kafkachannel
Knative release version
0.17.3
Additional context
Editing manually the KafkaChannel subscribers list corrects the issue
The text was updated successfully, but these errors were encountered: