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

Allow consumer group to be cancelled #100

Conversation

lionelvillard
Copy link
Contributor

@lionelvillard lionelvillard commented Oct 13, 2020

Proposed Changes

  • 🐛 KafkaSource now properly close the session when the parent context is closed.

Release Note

🐛 KafkaSource now properly close the session when the parent context is closed.  

Docs

@google-cla google-cla bot added the cla: yes Indicates the PR's author has signed the CLA. label Oct 13, 2020
@knative-prow-robot knative-prow-robot added size/M Denotes a PR that changes 30-99 lines, ignoring generated files. approved Indicates a PR has been approved by an approver from all required OWNERS files. labels Oct 13, 2020
@lionelvillard
Copy link
Contributor Author

@pierDipi @matzew I believe this one is ready to go, right?

Copy link
Member

@pierDipi pierDipi left a comment

Choose a reason for hiding this comment

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

/approve
/cc slinkydeveloper matzew

@knative-prow-robot
Copy link
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: lionelvillard, 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

pkg/common/consumer/consumer_handler.go Outdated Show resolved Hide resolved
pkg/source/adapter/adapter.go Outdated Show resolved Hide resolved
@lionelvillard
Copy link
Contributor Author

/hold

@knative-prow-robot knative-prow-robot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 15, 2020
@knative-prow-robot knative-prow-robot added size/S Denotes a PR that changes 10-29 lines, ignoring generated files. and removed size/M Denotes a PR that changes 30-99 lines, ignoring generated files. labels Oct 28, 2020
@knative-metrics-robot
Copy link

The following is the coverage report on the affected files.
Say /test pull-knative-sandbox-eventing-kafka-go-coverage to re-run this coverage report

File Old Coverage New Coverage Delta
pkg/source/adapter/adapter.go 65.0% 64.1% -0.9

@codecov
Copy link

codecov bot commented Oct 28, 2020

Codecov Report

Merging #100 into master will decrease coverage by 0.18%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #100      +/-   ##
==========================================
- Coverage   75.25%   75.07%   -0.19%     
==========================================
  Files         112      112              
  Lines        3997     3996       -1     
==========================================
- Hits         3008     3000       -8     
- Misses        806      813       +7     
  Partials      183      183              
Impacted Files Coverage Δ
pkg/common/consumer/consumer_handler.go 80.95% <ø> (ø)
pkg/source/adapter/adapter.go 68.62% <50.00%> (-0.61%) ⬇️
pkg/channel/consolidated/dispatcher/dispatcher.go 48.79% <100.00%> (ø)
pkg/common/consumer/consumer_factory.go 77.41% <100.00%> (ø)
...el/distributed/dispatcher/dispatcher/dispatcher.go 66.29% <0.00%> (-7.87%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8325f1b...20dbada. Read the comment docs.

@lionelvillard
Copy link
Contributor Author

I made this PR smaller.

/unhold

@knative-prow-robot knative-prow-robot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Oct 28, 2020
@slinkydeveloper
Copy link
Contributor

So at this point this PR just adds the context to the signature of StartConsumerGroup right?

@lionelvillard
Copy link
Contributor Author

right.

@slinkydeveloper
Copy link
Contributor

So the description of the pr is wrong 😄

@lionelvillard
Copy link
Contributor Author

description or title?

@slinkydeveloper
Copy link
Contributor

both

@slinkydeveloper
Copy link
Contributor

slinkydeveloper commented Oct 28, 2020

i mean, what if you fix the whole issue here or cancelling the consumer group with closing the context? This change is small enough and pretty clear

@knative-prow-robot
Copy link
Contributor

@lionelvillard: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-sandbox-eventing-kafka-integration-test-channel-distributed 20dbada link /test pull-knative-sandbox-eventing-kafka-integration-test-channel-distributed

Full PR test history. Your PR dashboard.

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.

@knative-prow-robot
Copy link
Contributor

@lionelvillard: The following test failed, say /retest to rerun all failed tests:

Test name Commit Details Rerun command
pull-knative-sandbox-eventing-kafka-integration-test-channel-consolidated 20dbada link /test pull-knative-sandbox-eventing-kafka-integration-test-channel-consolidated

Full PR test history. Your PR dashboard.

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.

@lionelvillard
Copy link
Contributor Author

will submit another PR.

matzew added a commit to matzew/eventing-kafka that referenced this pull request Mar 23, 2021
Signed-off-by: Matthias Wessendorf <mwessend@redhat.com>
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. cla: yes Indicates the PR's author has signed the CLA. size/S Denotes a PR that changes 10-29 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants