Skip to content
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

Fix to metadata refresh interruption #4679

Merged
merged 4 commits into from
Apr 15, 2024

Conversation

emasab
Copy link
Contributor

@emasab emasab commented Apr 8, 2024

Metadata refreshes without partition
leader change could lead to a loop of
metadata calls at fixed intervals.
Solved by stopping metadata refresh
when all existing metadata is non-stale.
Happening since 2.3.0

Closes #4577

@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from 4f3b716 to ced675f Compare April 8, 2024 19:06
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from 3e05712 to fc00cfc Compare April 11, 2024 09:18
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from ced675f to 74b82fc Compare April 11, 2024 09:18
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from fc00cfc to 420116d Compare April 11, 2024 17:17
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from 74b82fc to 05c2830 Compare April 11, 2024 17:17
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from 420116d to 60045b7 Compare April 14, 2024 11:01
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from 05c2830 to 8090e71 Compare April 14, 2024 11:03
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from 60045b7 to 4657f99 Compare April 15, 2024 08:06
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch 2 times, most recently from bdccc8c to f0d63ab Compare April 15, 2024 09:32
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from 78a5434 to 31fea0e Compare April 15, 2024 09:43
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch 2 times, most recently from f9b1fa7 to 7bfe82b Compare April 15, 2024 10:10
@emasab emasab force-pushed the dev_fix_metadata_call_before_join_group branch from 31fea0e to cbf2c54 Compare April 15, 2024 14:51
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from 7bfe82b to e3bc31e Compare April 15, 2024 14:51
Base automatically changed from dev_fix_metadata_call_before_join_group to dev_kip848 April 15, 2024 15:20
emasab added 3 commits April 15, 2024 17:23
Metadata refreshes without partition
leader change could lead to a loop of
metadata calls at fixed intervals.
Solved by stopping metadata refresh
when all existing metadata is non-stale.
Happening since 2.3.0
@emasab emasab force-pushed the dev_fix_metadata_fast_refresh_loop branch from e3bc31e to 44dc011 Compare April 15, 2024 15:26
}
rd_kafka_mock_request_destroy_array(requests, request_cnt);
rd_usleep(100 * 1000, 0);
while (matching_request_cnt < expected_cnt) {
Copy link
Member

Choose a reason for hiding this comment

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

If this criteria is never met, the test will be in infinite loop. Can we make sure that there is some deterministic terminate condition?

Copy link
Member

@pranavrth pranavrth left a comment

Choose a reason for hiding this comment

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

LGTM overall. Gave one comment.

@emasab emasab merged commit 806e5e8 into dev_kip848 Apr 15, 2024
2 checks passed
@emasab emasab deleted the dev_fix_metadata_fast_refresh_loop branch April 15, 2024 17:56
emasab added a commit that referenced this pull request Apr 18, 2024
Metadata refreshes without partition
leader change could lead to a loop of
metadata calls at fixed intervals.
Solved by stopping metadata refresh
when all existing metadata is non-stale.
Happening since 2.3.0
anchitj pushed a commit that referenced this pull request Jun 10, 2024
Metadata refreshes without partition
leader change could lead to a loop of
metadata calls at fixed intervals.
Solved by stopping metadata refresh
when all existing metadata is non-stale.
Happening since 2.3.0
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants