-
Notifications
You must be signed in to change notification settings - Fork 215
Support Create Partitions #623
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
Open
BlueCollarChris
wants to merge
16
commits into
kafka4beam:master
Choose a base branch
from
BlueCollarChris:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 4 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
1cc6093
stash
2e91370
update inline docs
9d80863
add simple tests
a8a7b57
remove inspect
f36e560
separate sync from client
646aeb2
Update src/brod_partitions_sync.erl
BlueCollarChris a9e1e9d
update with master
a85a763
handle conflict on supported versions
eee56f6
rebase changes onto forked master
ae0b067
passing lint
cf3865e
pass dialyzer
19d9d5e
completely revert client to current state
aacb50d
overlay changes
2a7f280
remove fmt changes in prod sup
6b68b30
lint
9c86899
tests passing
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -25,7 +25,7 @@ | |
| ]). | ||
|
|
||
| %% Test cases | ||
| -export([ t_create_delete_topics/1 | ||
| -export([ t_create_update_delete_topics/1 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. could you add another case which starts producers for a topic, then create new partitions, then assert that partition producer is started automatically? |
||
| , t_delete_topics_not_found/1 | ||
| ]). | ||
|
|
||
|
|
@@ -59,7 +59,7 @@ all() -> [F || {F, _A} <- module_info(exports), | |
|
|
||
| %%%_* Test functions =========================================================== | ||
|
|
||
| t_create_delete_topics(Config) when is_list(Config) -> | ||
| t_create_update_delete_topics(Config) when is_list(Config) -> | ||
| Topic = iolist_to_binary(["test-topic-", integer_to_list(erlang:system_time())]), | ||
| TopicConfig = [ | ||
| #{ | ||
|
|
@@ -70,9 +70,22 @@ t_create_delete_topics(Config) when is_list(Config) -> | |
| name => Topic | ||
| } | ||
| ], | ||
| TopicPartitionConfig = [ | ||
| #{ | ||
| topic => Topic, | ||
| new_partitions => #{ | ||
| count => 2, | ||
| assignment => [[0]] | ||
| } | ||
| } | ||
| ], | ||
| try | ||
| ?assertEqual(ok, | ||
| brod:create_topics(?HOSTS, TopicConfig, #{timeout => ?TIMEOUT}, | ||
| #{connect_timeout => ?TIMEOUT})), | ||
|
|
||
| ?assertEqual(ok, | ||
| brod:create_partitions(?HOSTS, TopicPartitionConfig, #{timeout => ?TIMEOUT}, | ||
| #{connect_timeout => ?TIMEOUT})) | ||
| after | ||
| ?assertEqual(ok, brod:delete_topics(?HOSTS, [Topic], ?TIMEOUT, | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.