-
Notifications
You must be signed in to change notification settings - Fork 571
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
fix(log/stream): ensure the appender future always gets completed #8605
Conversation
b36113a
to
ef887e6
Compare
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 @romansmirnov 👍
I have two minor 🔧 comments but nothing major that would require a re-review.
logstreams/src/main/java/io/camunda/zeebe/logstreams/impl/log/LogStreamImpl.java
Outdated
Show resolved
Hide resolved
logstreams/src/main/java/io/camunda/zeebe/logstreams/impl/log/LogStreamImpl.java
Show resolved
Hide resolved
ef887e6
to
a333f30
Compare
bors r+ |
8582: fix(log/appender): yield thread when experiencing backpressure r=romansmirnov a=romansmirnov ## Description Yield the thread, when the log storage appender experiences backpressure when trying to append the fragments to the log storage. That way, the actual actor task (log storage appender) is resubmitted to the working queue, and the actor thread is released to execute other actor tasks. ## Related issues closes #8540 8605: fix(log/stream): ensure the appender future always gets completed r=romansmirnov a=romansmirnov ## Description * Handles any kind of thrown `Throwable`s in the `LogStream` actor, so that the appender future gets completed exceptionally. * Handles the situation when opening the appender, the `LogStream` actor is supposed to be closed. In this situation, the appender future gets completed exceptionally as well. ## Related issues closes #7992 8615: deps(maven): bump value from 2.8.9-ea-1 to 2.9.0 r=npepinpe a=dependabot[bot] Bumps [value](https://github.com/immutables/immutables) from 2.8.9-ea-1 to 2.9.0. <details> <summary>Commits</summary> <ul> <li>See full diff in <a href="https://github.com/immutables/immutables/commits">compare view</a></li> </ul> </details> <br /> [![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=org.immutables:value&package-manager=maven&previous-version=2.8.9-ea-1&new-version=2.9.0)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Co-authored-by: Roman <roman.smirnov@camunda.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Build failed (retrying...): |
bors retry |
Already running a review |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/1.2
git worktree add -d .worktree/backport-8605-to-stable/1.2 origin/stable/1.2
cd .worktree/backport-8605-to-stable/1.2
git checkout -b backport-8605-to-stable/1.2
ancref=$(git merge-base 3da1a75d52e524b123f91a8ec9e480a0337bbf42 a333f30c916b5ab2e1cbdcc89c2b259d09e9d209)
git cherry-pick -x $ancref..a333f30c916b5ab2e1cbdcc89c2b259d09e9d209 |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/1.3
git worktree add -d .worktree/backport-8605-to-stable/1.3 origin/stable/1.3
cd .worktree/backport-8605-to-stable/1.3
git checkout -b backport-8605-to-stable/1.3
ancref=$(git merge-base 3da1a75d52e524b123f91a8ec9e480a0337bbf42 a333f30c916b5ab2e1cbdcc89c2b259d09e9d209)
git cherry-pick -x $ancref..a333f30c916b5ab2e1cbdcc89c2b259d09e9d209 |
8628: [Backport stable/1.3] fix(log/stream): ensure the appender future always gets completed r=oleschoenburg a=romansmirnov ## Description <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> backports #8605 relates #7992 Co-authored-by: Roman <roman.smirnov@camunda.com>
8628: [Backport stable/1.3] fix(log/stream): ensure the appender future always gets completed r=oleschoenburg a=romansmirnov ## Description <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> backports #8605 relates #7992 Co-authored-by: Roman <roman.smirnov@camunda.com>
8627: [Backport stable/1.2] fix(log/stream): ensure the appender future always gets completed r=oleschoenburg a=romansmirnov ## Description <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> backports #8605 relates #7992 Co-authored-by: Roman <roman.smirnov@camunda.com>
8627: [Backport stable/1.2] fix(log/stream): ensure the appender future always gets completed r=oleschoenburg a=romansmirnov ## Description <!-- Please explain the changes you made here. --> ## Related issues <!-- Which issues are closed by this PR or are related --> backports #8605 relates #7992 Co-authored-by: Roman <roman.smirnov@camunda.com>
Description
Throwable
s in theLogStream
actor, so that the appender future gets completed exceptionally.LogStream
actor is supposed to be closed. In this situation, the appender future gets completed exceptionally as well.Related issues
closes #7992
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/0.25
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation: