Skip to content
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

Discard invalid consumer records #4128

Merged

Conversation

pierDipi
Copy link
Member

@pierDipi pierDipi commented Oct 9, 2024

Invalid records shouldn't block consuming events.

The record will eventually end up here and discarded:

https://github.com/knative-extensions/eventing-kafka-broker/blob/main/data-plane/dispatcher/src/main/java/dev/knative/eventing/kafka/broker/dispatcher/impl/RecordDispatcherImpl.java#L168-L177

Fixes #4129

Proposed Changes

  • Discard invalid consumer records

Copy link

knative-prow bot commented Oct 9, 2024

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: 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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@knative-prow knative-prow bot added approved Indicates a PR has been approved by an approver from all required OWNERS files. size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 9, 2024
@pierDipi
Copy link
Member Author

pierDipi commented Oct 9, 2024

/cherry-pick release-1.15

@knative-prow-robot
Copy link
Contributor

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.15 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.15

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-sigs/prow repository.

@pierDipi
Copy link
Member Author

pierDipi commented Oct 9, 2024

/cherry-pick release-1.14

@knative-prow-robot
Copy link
Contributor

@pierDipi: once the present PR merges, I will cherry-pick it on top of release-1.14 in a new PR and assign it to you.

In response to this:

/cherry-pick release-1.14

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-sigs/prow repository.

Copy link

codecov bot commented Oct 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 48.51%. Comparing base (b9233fe) to head (76ee7c5).
Report is 8 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4128   +/-   ##
=======================================
  Coverage   48.51%   48.51%           
=======================================
  Files         244      244           
  Lines       14928    14928           
=======================================
  Hits         7242     7242           
  Misses       6955     6955           
  Partials      731      731           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
Signed-off-by: Pierangelo Di Pilato <pierdipi@redhat.com>
@knative-prow knative-prow bot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. and removed size/S Denotes a PR that changes 10-29 lines, ignoring generated files. labels Oct 9, 2024
@pierDipi
Copy link
Member Author

pierDipi commented Oct 9, 2024

/cc @creydr @matzew @aliok

@knative-prow knative-prow bot requested review from aliok and creydr October 9, 2024 09:32
@pierDipi
Copy link
Member Author

pierDipi commented Oct 9, 2024

/retest-required

Copy link
Contributor

@creydr creydr left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@knative-prow knative-prow bot added the lgtm Indicates that a PR is ready to be merged. label Oct 9, 2024
@pierDipi
Copy link
Member Author

pierDipi commented Oct 9, 2024

/retest-required

3 similar comments
@matzew
Copy link
Contributor

matzew commented Oct 10, 2024

/retest-required

@pierDipi
Copy link
Member Author

/retest-required

@pierDipi
Copy link
Member Author

/retest-required

@pierDipi
Copy link
Member Author

/test reconciler-tests-namespaced-broker

@pierDipi
Copy link
Member Author

/retest-required

@pierDipi
Copy link
Member Author

/retest

@elebiodaslingshot
Copy link

Can we expedite this. This is breaking entire clusters.

@pierDipi
Copy link
Member Author

/test reconciler-tests-namespaced-broker

1 similar comment
@pierDipi
Copy link
Member Author

/test reconciler-tests-namespaced-broker

@pierDipi
Copy link
Member Author

/retest

@pierDipi
Copy link
Member Author

/retest-required

@matzew
Copy link
Contributor

matzew commented Oct 16, 2024

/retest

@knative-prow knative-prow bot merged commit 265839a into knative-extensions:main Oct 16, 2024
35 checks passed
@knative-prow-robot
Copy link
Contributor

@pierDipi: new pull request created: #4140

In response to this:

/cherry-pick release-1.15

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-sigs/prow repository.

@knative-prow-robot
Copy link
Contributor

@pierDipi: new pull request created: #4141

In response to this:

/cherry-pick release-1.14

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-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. area/data-plane lgtm Indicates that a PR is ready to be merged. size/M Denotes a PR that changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

knative-kafka-broker-dispatcher unahndled exception when processing an invalid CE
5 participants