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
add test for compaction when exporter is slow #4377
Conversation
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.
With the latest version of the test, do we need to write more segments once we stop exporting? Writing a few records would be enough, no? Just thinking out loud 🤔
Also, how complicated would it be to test that if we start exporting again, then we would compact properly again? 😅
We have to make sure the last processed position is in the next segment. Otherwise, it will anyway not compact that segment. So we are not really testing this particular case.
I have added that to the test. Adding a new test for that seems to be redundant. So I extended the current one. |
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.
👍
I guess merging is blocked until we merge #4374 |
bors r+ |
bors r- |
Canceled |
Sorry, thought it was already a single commit 😅 |
:) I will rebase and merge. |
f48e952
to
96269c5
Compare
bors r+ |
Build failed |
bors r+ |
Build failed |
bors retry |
Build failed |
bors retry |
Build succeeded |
@deepthidevaki @npepinpe shouldn't we backport this then as well? This is actually part of a bug fix right? as we did https://github.com/zeebe-io/zeebe/pull/4363/files . I tried to backport #5106 but had to realize that I'm not able to write the same test, since there are some things missing 😅 |
I don't know. At the time of this PR we were not actively backporting everything. Also this is only adding a test. On the otherhand it will be easy to backport. |
Description
Related issue
closes #4371
Pull Request Checklist
mvn clean install -DskipTests
locally before committing