-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Strategy ordering bug fix #3818
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.
Good stuff!
Don't forget to add a CHANGELOG Fixed entry
} | ||
|
||
|
||
int main_0132_strategy_ordering(int argc, char **argv) { |
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.
Good tests! 👍
* and the strategies earlier in the list have higher priority | ||
* when retrieve the protocol. */ | ||
rd_list_sort(&rk->rk_conf.partition_assignors, | ||
rd_kafka_assignor_cmp_idx); | ||
|
||
/* Clear the SORTED flag because the list is sorted according to the |
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.
👍
Co-authored-by: Magnus Edenhill <[email protected]>
Co-authored-by: Magnus Edenhill <[email protected]>
Co-authored-by: Magnus Edenhill <[email protected]>
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.
Great stuff, thanks Jing!
@@ -476,6 +477,7 @@ struct test tests[] = { | |||
_TEST(0129_fetch_aborted_msgs, 0, TEST_BRKVER(0, 11, 0, 0)), | |||
_TEST(0130_store_offsets, 0), | |||
_TEST(0131_connect_timeout, TEST_F_LOCAL), | |||
_TEST(0132_strategy_ordering, 0, TEST_BRKVER(2, 4, 0, 0)), |
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.
Why is broker version 2.4 needed? I believe consumer groups were added in 0.9.0
If multiple strategies are supported, the first strategy would be used. But
range
one is always used at this moment. This PR will fixed this issue.TESTS: TESTS=0132 ./run-test.sh valgrind