-
Notifications
You must be signed in to change notification settings - Fork 638
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
Do not restart broker on snapshot test #9573
Conversation
Previously we took no snapshot if the exporter hasn't commited the positions, but this is no longer true. This means if we run the DebugExporter we still can take snapshots. This allows to reduce the complexity in the SnapshotTest, as it is no longer necessary to restart the Broker without the DebugExporter. This will of course also reduce the execution time of the test, and hopefully the flakiness.
I feel dumb, I don't see how this was causing flakiness? 🙈 |
Based on the report:
I haven't reproduced it locally, but I felt it is not necessary at all to restart the broker and send the additional message, which I hope reduces/removes the possibility to fail as well. |
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.
👍
Let's try this, it can only improve the situation.
BTW: Main |
bors r+ |
Build succeeded: |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/1.3
git worktree add -d .worktree/backport-9573-to-stable/1.3 origin/stable/1.3
cd .worktree/backport-9573-to-stable/1.3
git checkout -b backport-9573-to-stable/1.3
ancref=$(git merge-base 706e63079ce2a0d5ca8e27fe521aac8903690acc 379e54fe9f5e8673560caeb32caadb5019fd4d25)
git cherry-pick -x $ancref..379e54fe9f5e8673560caeb32caadb5019fd4d25 |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/8.0
git worktree add -d .worktree/backport-9573-to-stable/8.0 origin/stable/8.0
cd .worktree/backport-9573-to-stable/8.0
git checkout -b backport-9573-to-stable/8.0
ancref=$(git merge-base 706e63079ce2a0d5ca8e27fe521aac8903690acc 379e54fe9f5e8673560caeb32caadb5019fd4d25)
git cherry-pick -x $ancref..379e54fe9f5e8673560caeb32caadb5019fd4d25 |
9580: [Backport 1.3]: Do not restart broker on snapshot test r=npepinpe a=Zelldon ## Description <!-- Please explain the changes you made here. --> Backports #9573 ## Related issues <!-- Which issues are closed by this PR or are related --> closes #9517 Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
9581: [Backport 8.0]: Do not restart broker on snapshot test r=npepinpe a=Zelldon ## Description Backports #9573 <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> closes #9517 Co-authored-by: Christopher Zell <zelldon91@googlemail.com>
PR Description
Previously we took no snapshot if the exporter hasn't committed the positions, but this is no longer true (see #8176).
This means if we run the DebugExporter we still can take snapshots.
This allows to reduce the complexity in the SnapshotTest, as it is no longer necessary to restart the Broker
without the DebugExporter. This will of course also reduce the execution time of the test, and hopefully the flakiness.
TIL:
I thought I had to make the DebugExporter configurable so it will commit the exporting position if I want it to, which is why I implemented it here https://github.com/camunda/zeebe/tree/zell-debug-exporter
Later I realized (because I wrote tests 😁 ) that we take anyway snapshots, even if we have an exporter not committing the positions so I dropped the changes from the PR. Let me know whether we still want this, maybe worth for other things not sure 🤷♂️
Related issues
closes #9517
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:
Please refer to our review guidelines.