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

ducky: fix test_deletion_stops_move ci-failure #5204

Merged
merged 1 commit into from
Jun 23, 2022

Conversation

rystsov
Copy link
Contributor

@rystsov rystsov commented Jun 23, 2022

Cover letter

Add check that a cluster has a leader before performing an action.

Fixes #5189

Release notes

  • none

@rystsov rystsov closed this Jun 23, 2022
@rystsov rystsov reopened this Jun 23, 2022
@rystsov rystsov merged commit f5aec8b into redpanda-data:dev Jun 23, 2022
@@ -174,7 +174,7 @@ def _get_stable_configuration(
self.redpanda.logger.debug(f"doesn't have leader")
return None
if last_leader < 0:
last_leader = meta["leader_id"]
last_leader = int(meta["leader_id"])
Copy link
Member

Choose a reason for hiding this comment

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

if meta["leader_id"] < 0 already exists above suggesting the type is numeric. why is conversion necessary?

Comment on lines -260 to +262
wait_until(
return wait_until_result(
Copy link
Member

Choose a reason for hiding this comment

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

@rystsov why did this change? wait_until_result is intended for when the return value of the predicate is desired by the caller of wait_until, but here it is thrown away.

Copy link
Member

@dotnwat dotnwat Jun 28, 2022

Choose a reason for hiding this comment

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

Sorry for the noise! I didn't see the return :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Connection issue in PartitionMovementTest.test_deletion_stops_move
3 participants