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

fix(backups/forkStreamUnpipe): unpause stream after unpipe #7669

Merged
merged 1 commit into from
May 31, 2024

Conversation

fbeauchamp
Copy link
Collaborator

when a backup job does delta replication + backup and the replication
fails to find the base VM, the backup job does not proceed
This commit force the stream to continue to flow after unpiping a
descendant stream

Description

Short explanation of this PR (feel free to re-use commit message)

Checklist

  • Commit
    • Title follows commit conventions
    • Reference the relevant issue (Fixes #007, See xoa-support#42, See https://...)
    • If bug fix, add Introduced by
  • Changelog
    • If visible by XOA users, add changelog entry
    • Update "Packages to release" in CHANGELOG.unreleased.md
  • PR
    • If UI changes, add screenshots
    • If not finished or not tested, open as Draft

@fbeauchamp fbeauchamp force-pushed the fix_stream_locked branch 2 times, most recently from 0327753 to 0c75b55 Compare May 21, 2024 09:09
@fbeauchamp fbeauchamp marked this pull request as ready for review May 21, 2024 09:09
@fbeauchamp fbeauchamp requested a review from MathieuRA May 21, 2024 09:11
CHANGELOG.unreleased.md Outdated Show resolved Hide resolved
@MathieuRA MathieuRA requested a review from julien-f May 23, 2024 15:00
} else {
// a combination of stream.unpipe, onReadable and onData may stall stream here
// force it to flow again since we're piping it
source.resume()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Next time we fix something like this we should add a unit test.

when a backup job does delta replication + backup and the replication
fails to find the base VM, the backup job does not proceed
This commit force the stream to continue to flow after unpiping a
descendant stream
@julien-f julien-f changed the title fix(backups): ensure delta backup continues even if a replication fails fix(backups/forkStreamUnpipe): unpause stream after unpipe May 31, 2024
@julien-f julien-f merged commit 9133e32 into master May 31, 2024
1 check failed
@julien-f julien-f deleted the fix_stream_locked branch May 31, 2024 06:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants