-
Notifications
You must be signed in to change notification settings - Fork 121
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: Issues with cooperative-sticky strategy #593
Fix: Issues with cooperative-sticky strategy #593
Conversation
Great work 🚀 with this PR. Can you also add some tests as well to validate this use case? 🙇 |
We'd love to have this feature. Any updates on the implementation of the tests? |
Unit tests were added 2 months ago. |
Great. Any updates on getting the feature reviewed @dosper7? |
Great to see it happening! Thanks @golanbz for working on it! |
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.
thanks @golanbz !
@golanbz thanks for the contribution! Can you please rebase the PR with master. |
Hooray! Things are moving! I am so excited! :) |
0816113
to
0683df5
Compare
@golanbz can you please check the errors on the lint step? Also, rebase with the latest changes from master. |
e37fb6f
to
548cd18
Compare
- Added support for consumer strategies that do not act as "stop the world" scenarios (e.g., cooperative sticky). - Enabled automatic committing with `confluent auto commit: true` when the consumer strategy is cooperative sticky. - Referenced open librdkafka issue: confluentinc/librdkafka#4059.
test: add unit tests and fix bug in ClusterConfiguration - Added 3 new test files to improve coverage: - ConsumerConfigurationBuilderTests.cs - KafkaConfigTests.cs - PartitionAssignmentStrategyTests.cs - Fixed a bug in ClusterConfiguration related to AutoCommitInterval initialization chore: update AutoCommitInterval to 100ms in Cooperative-sticky sample - Updated AutoCommitInterval in Cooperative-sticky sample Program.cs to 100ms. fix: resolve Codacy issues - Fixed various code quality issues flagged by Codacy.
35f0650
to
d970b5d
Compare
Description
cooperative-sticky
protocol #456.confluent.auto.commit: true
for the cooperative sticky consumer strategy, instead of relying solely on manual commits. This change is particularly relevant due to the ongoing issue in librdkafka (see: Consumers should not be able to commit during a rebalance confluentinc/librdkafka#4059).How Has This Been Tested?
Checklist
Disclaimer
By sending us your contributions, you are agreeing that your contribution is made subject to the terms of our Contributor Ownership Statement.