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

[v22.2.x] cloud_storage/tests: wait for partition metadata during topic recovery tests #6013

Merged

Conversation

vbotbuildovich
Copy link
Collaborator

@vbotbuildovich vbotbuildovich commented Aug 13, 2022

Backport from pull request: #5757.

Fixes: #6012

If a leader election happened right before we verify topic watermark,
rpk may return an error such as "not leader for partition" due to stale
metadata.

Instead of failing immediately this change makes the caller wait for
upto 1 minute so that the new leadership info is propagated to the
cluster and rpk returns the correct partition metadata.

(cherry picked from commit 90f0e12)
@abhijat abhijat merged commit ec6bb90 into redpanda-data:v22.2.x Aug 17, 2022
@mmedenjak mmedenjak linked an issue Aug 23, 2022 that may be closed by this pull request
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/backport PRs targeting a stable branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[v22.2.x] Assertion Error in TopicRecoveryTest.test_fast3
3 participants