-
-
Notifications
You must be signed in to change notification settings - Fork 69
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Allow users to set number of partitions in topic #1040
Conversation
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.
Kudos for keeping BC, this is a great improvement. I have a small question regarding the test, and after clearing this out this will be ready to be merged.
Hey @karelbilek, I merged a bunch of other PRs, so if you still want to merge this, please rebase and resolve the conflicts. Thanks! |
b6d2373
to
9c82dca
Compare
Done, plus I added a test that the topics are created successfully with the proper partitions. (I... think. I am myself using a different kafka library than gnomock is using.) |
I have added new type, TopicConfig, and added it to options WithTopicConfig in backwards-compatible way For now it just has topic name and number of partitions, but it can be enhanced in the future with other options. I wanted to also add a replication count, but there is just one broker in the cluster, so it makes no sense.
9c82dca
to
43e4f8f
Compare
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #1040 +/- ##
===========================================
- Coverage 85.87% 64.40% -21.48%
===========================================
Files 50 55 +5
Lines 2350 2618 +268
===========================================
- Hits 2018 1686 -332
- Misses 173 809 +636
+ Partials 159 123 -36 ☔ 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.
Nice, thank you!
I have added new type, TopicConfig, and added it to options WithTopicConfig in backwards-compatible way.
For now it just has topic name and number of partitions, but it can be enhanced in the future with other options.
I wanted to also add a replication count, but there is just one broker in the cluster, so it makes no sense.
Fixes #1031