-
Notifications
You must be signed in to change notification settings - Fork 705
k/tests: retry creating topic in topic recreate test #26321
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
k/tests: retry creating topic in topic recreate test #26321
Conversation
Sometimes it may happen that the client will receive not leader controller reply. In this case we must retry creating topic to make sure the rest of the test passes. Signed-off-by: Michał Maślanka <michal@redpanda.com>
| auto resp | ||
| = client.dispatch(std::move(req), kafka::api_version(2)).get(); | ||
| if ( | ||
| resp.data.topics.begin()->error_code == kafka::error_code::none) { |
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.
What's the actual error returned if controller leadership has changed? Are we okay to swallow any other errors?
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.
the test will still fail if retries are exhausted
CI test resultstest results on build#66747
|
|
/backport v25.1.x |
Sometimes it may happen that the client will receive not leader controller reply. In this case we must retry creating topic to make sure the rest of the test passes.
Backports Required
Release Notes