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
Fix context used in kafka consume #3366
base: main
Are you sure you want to change the base?
Conversation
… a cloud service (dapr#3339) Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Bernd Verst <github@bernd.dev> Signed-off-by: Guido Spadotto <guido.spadotto@profesia.it> Signed-off-by: Guido Spadotto <guido.spad8@gmail.com> Co-authored-by: Guido Spadotto <guido.spad8@gmail.com> Co-authored-by: Guido Spadotto <guido.spadotto@profesia.it>
Signed-off-by: yaron2 <schneider.yaron@live.com>
…dapr#3357) Signed-off-by: Samantha Coyle <sam@diagrid.io> Co-authored-by: Sam <sam@diagrid.io>
…) (dapr#3359) Signed-off-by: Bernd Verst <github@bernd.dev>
Signed-off-by: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com>
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3366 +/- ##
=======================================
Coverage 35.26% 35.26%
=======================================
Files 244 244
Lines 30969 30969
=======================================
+ Hits 10921 10922 +1
Misses 19116 19116
+ Partials 932 931 -1 ☔ View full report in Codecov by Sentry. |
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.
Looks like the Kafka conformance tests are failing, can you PTAL?
They still need fixing from an earlier PR. Some tests need to be removed as they checked for non conformant behavior where messages were still expected to be delivered after the subscription was cancelled |
Signed-off-by: Joni Collinge <jonathancollinge@live.com>
@yaron2 I ended up removing the stop subscribers test. It looked to me that the test didn't have much value once we removed the logic to receive messages after the subscribe contexts had been cancelled. Let me know if you want me to reinstate it. |
Wait please don't remove the entire test. There's a reason for that test, we want to make sure that context cancellation works! |
This PR should be made against main branch and then cherry picked. In contrib we do not merge release back to main. Can you change the base branch @jjcollinge |
@yaron2 advised this is not going to be merged for 1.13. So I will update your base branch for that reason also. |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
This pull request has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please feel free to give a status update now, ping for review, or re-open when it's ready. Thank you for your contributions! |
Signed-off-by: Joni Collinge jonathancollinge@live.com
Description
Use the consume context in the backoff retry of consume as the context parameter will be cancelled and not renewed.
Without this change the subscription does not recover once the context has been refreshed and no more messages are consumed.
Issue reference
We strive to have all PR being opened based on an issue, where the problem or feature have been discussed prior to implementation.
Please reference the issue this PR will close: #[issue number]
Checklist
Please make sure you've completed the relevant tasks for this PR, out of the following list: