-
Notifications
You must be signed in to change notification settings - Fork 449
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: wait for all streams to close when writing backups #5835
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Ignored Deployment
|
No changes to documentation |
cb09a50
to
6bb6360
Compare
Component Testing Report Updated Feb 26, 2024 3:22 PM (UTC)
|
6bb6360
to
df56eed
Compare
df56eed
to
8a563a0
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.
Interesting, good find. Thank you for taking it up. I must say I am not much familiar with Node streams either and would love a re-review from Studio team.
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.
Not familiar with this pipeline
API but given this feature is not formally release and there is a task to add tests for this happy to approve it since quick glance at the docs it does what is expected
8a563a0
to
b7a57cb
Compare
Description
Without these changes I would often receive
Error: Archiving backup failed: Size mismatch
when usingsanity backup download
. I would also sometimes instead find that the tarball was successfully created but contained truncated files.What to review
My use of streams - I do not have much experience with them. I am not sure if the changes to the
docOutStream
are necessary.Testing
I tested this with a script that:
I then ran this script in a loop. Before the change it rarely succeeded. After the change it has run for hundreds of iterations in a row without failing.
Notes for release
None needed, this feature is not yet formally released.