-
Notifications
You must be signed in to change notification settings - Fork 119
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
Set consumer and consumergroups finalizers when creating them #3355
Set consumer and consumergroups finalizers when creating them #3355
Conversation
…e-extensions#823) It is possible that a delete consumer or consumergroup might be reconciled and never finalized when it is deleted before the finalizer is set. This happens because the Knative generated reconciler uses patch (as opposed to using update) for setting the finalizer and patch doesn't have any optimistic concurrency controls. Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com> Co-authored-by: Pierangelo Di Pilato <pierdipi@redhat.com> Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Codecov Report
@@ Coverage Diff @@
## main #3355 +/- ##
============================================
- Coverage 61.61% 58.53% -3.09%
============================================
Files 182 91 -91
Lines 12331 9237 -3094
Branches 268 0 -268
============================================
- Hits 7598 5407 -2191
+ Misses 4136 3402 -734
+ Partials 597 428 -169
Flags with carried forward coverage won't be shown. Click here to find out more.
|
@pierDipi is this related to knative/pkg#2828? |
yes, it's a mitigation of it /retest |
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
137644f
to
5e5e8a6
Compare
/cc @matzew |
/retest |
/retest-required |
control-plane/pkg/apis/internals/kafka/eventing/v1alpha1/consumer_group_types.go
Show resolved
Hide resolved
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
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Cali0707, pierDipi The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold for other reviewers (if needed @pierDipi ) |
/unhold |
/test channel-integration-tests-ssl |
/retest-required |
/retest |
@pierDipi: The following tests failed, say
Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository. I understand the commands that are listed here. |
/retest-required |
This is a mitigation for knative/pkg#2828
Before this patch, it was possible that a deleted consumer or
consumergroup might be reconciled and never finalized when
they are deleted before the finalizer is set.
This happens because the Knative generated reconciler uses
patch (as opposed to using update) for setting the finalizer
and patch doesn't have any optimistic concurrency controls.
Signed-off-by: Pierangelo Di Pilato pierdipi@redhat.com
Proposed Changes
Release Note