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

r/tests: always use current leader offsets in linearizable barrier test #13259

Merged
merged 1 commit into from
Sep 5, 2023

Conversation

mmaslankaprv
Copy link
Member

@mmaslankaprv mmaslankaprv commented Sep 5, 2023

Previously the linearizable barrier test might use out of date leader offsets to assert if the barrier was executed correctly. This made the test flaky especially for slow debug builds where leadership can change throughout the test.

Backports Required

  • none - not a bug fix
  • none - this is a backport
  • none - issue does not exist in previous branches
  • none - papercut/not impactful enough to backport
  • v23.2.x
  • v23.1.x
  • v22.3.x

Release Notes

  • none

VladLazar
VladLazar previously approved these changes Sep 5, 2023
src/v/raft/tests/append_entries_test.cc Outdated Show resolved Hide resolved
Previously the linearizable barrier test might use out of date leader
offsets to assert if the barrier was executed correctly. This made the
test flaky especially for slow debug builds where leadership can change
throughout the test.

Signed-off-by: Michal Maslanka <michal@redpanda.com>
@mmaslankaprv
Copy link
Member Author

ci failure: #12659

@mmaslankaprv mmaslankaprv merged commit c78a792 into redpanda-data:dev Sep 5, 2023
9 checks passed
@mmaslankaprv mmaslankaprv deleted the fix-lb-test branch September 5, 2023 14:11
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.

2 participants