-
Notifications
You must be signed in to change notification settings - Fork 641
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
test(broker): wait until records are exported before taking snapshot #13039
Conversation
The index of snapshot depends both on processed and exported positions. When the exporter is slow, the snapshot is taken at a different index, which resulted in flaky tests. To prevent flakiness, wait until all records are exported before taking the snapshot.
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.
Thanks @deepthidevaki 🚀
bors merge |
13039: test(broker): wait until records are exported before taking snapshot r=deepthidevaki a=deepthidevaki ## Description The index of snapshot depends both on processed and exported positions. When the exporter is slow, the snapshot is taken at a different index, which resulted in flaky tests. To prevent flakiness, wait until all records are exported before taking the snapshot. Alternatively, we could disable exporter for this test. But this was not straightforward, as the recording exporter is part of the the rule. ## Related issues closes #12339 Co-authored-by: Deepthi Devaki Akkoorath <[email protected]>
Build failed: |
bors retry |
13039: test(broker): wait until records are exported before taking snapshot r=deepthidevaki a=deepthidevaki ## Description The index of snapshot depends both on processed and exported positions. When the exporter is slow, the snapshot is taken at a different index, which resulted in flaky tests. To prevent flakiness, wait until all records are exported before taking the snapshot. Alternatively, we could disable exporter for this test. But this was not straightforward, as the recording exporter is part of the the rule. ## Related issues closes #12339 Co-authored-by: Deepthi Devaki Akkoorath <[email protected]>
Build failed: |
bors merge |
Build succeeded: |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/8.0
git worktree add -d .worktree/backport-13039-to-stable/8.0 origin/stable/8.0
cd .worktree/backport-13039-to-stable/8.0
git checkout -b backport-13039-to-stable/8.0
ancref=$(git merge-base d166007d8fee3fa6f112367ea595d35199807f4f 1edc2a246ec51894e900505336d2ab6c7ff7c018)
git cherry-pick -x $ancref..1edc2a246ec51894e900505336d2ab6c7ff7c018 |
Successfully created backport PR for |
Successfully created backport PR for |
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Description
The index of snapshot depends both on processed and exported positions. When the exporter is slow, the snapshot is taken at a different index, which resulted in flaky tests. To prevent flakiness, wait until all records are exported before taking the snapshot.
Alternatively, we could disable exporter for this test. But this was not straightforward, as the recording exporter is part of the the rule.
Related issues
closes #12339
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/1.3
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation:
Other teams:
If the change impacts another team an issue has been created for this team, explaining what they need to do to support this change.
Please refer to our review guidelines.