-
-
Notifications
You must be signed in to change notification settings - Fork 64
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
Requeued events are handled even after deletion of entity #365
Comments
From my understanding of https://github.com/buehler/dotnet-operator-sdk/blob/master/src/KubeOps/Operator/Controller/ManagedResourceController%7BTEntity%7D.cs, requeued events for entities that do not exist anymore should be filtered out. So I just added a check for the DeletionTimestamp in the reconciliation handler. However, this does not seem to suffice. |
The problem here is caused by the fact that while a manually re-queued event will update the resource's data when it processes... dotnet-operator-sdk/src/KubeOps/Operator/Controller/ManagedResourceController{TEntity}.cs Lines 80 to 95 in 1e7b53d
... an event which is retried because it threw an exception does not have the same logic. |
🎉 This issue has been resolved in version 6.4.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
Describe the bug
If a reconciliation event is requeued with an exponential back-off, it is possible that it is handled even after its entity got deleted in the meantime.
Expected behavior
Reconciliation should not be triggered after an entity got deleted. Or should the existence / deletion timestamp of the entity be checked in the reconciliation handler? If yes, it would be good to document this.
The text was updated successfully, but these errors were encountered: