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

tests: improve AdminOperationsFuzzer.wait #5993

Merged
merged 1 commit into from
Aug 15, 2022

Conversation

jcsp
Copy link
Contributor

@jcsp jcsp commented Aug 12, 2022

Cover letter

This can drop out earlier when there is an error,
rather than waiting in vain for the execution count
to reach a target that it never will.

Related: #5950

Backport Required

  • not a bug fix
  • papercut/not impactful enough to backport
  • v22.2.x
  • v22.1.x
  • v21.11.x

UX changes

None

Release notes

  • none

@jcsp jcsp requested a review from ztlpn August 12, 2022 09:31
f"wait: terminating for error {self.error}")
raise self.error

if self.executed > count:
Copy link
Contributor

Choose a reason for hiding this comment

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

It is the same as in the original, but I think this should be >=?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

hmm, I guess it doesn't really matter as the test is waiting for an arbitrary number anyway, but yeah it's more intuitive to be >=, I'll update this.

This can drop out earlier when there is an error,
rather than waiting in vain for the execution count
to reach a target that it never will.

Related: redpanda-data#5950
f"wait: terminating for error {self.error}")
raise self.error

if self.executed >= count:
Copy link
Member

Choose a reason for hiding this comment

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

the original predicate was self.executed > count. not sure if it really matters

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yeah, this was a bit of drive-by cleanup to make the thing actually run count times (alexey's suggestion)

@jcsp jcsp merged commit 07510c1 into redpanda-data:dev Aug 15, 2022
@jcsp jcsp deleted the issue-5950-timeouts branch August 15, 2022 10:27
@jcsp
Copy link
Contributor Author

jcsp commented Aug 15, 2022

/backport v22.2.x

This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants