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

Let Store#store support large amounts of data #1636

Merged
merged 3 commits into from Dec 3, 2022

Conversation

denisdefreyne
Copy link
Member

@denisdefreyne denisdefreyne commented Dec 1, 2022

Detailed description

IO.write can raise the error Invalid argument @ io_write when there is too much data to write.

This PR changes #write_obj_to_file to write data as a stream, using IO.copy_stream. Additionally, the file is written atomically (written to temp file and then moved into place).

To do

  • Tests

Related issues

Fixes #1635.

@denisdefreyne
Copy link
Member Author

Ignore the test failure. Apparently GitHub Actions does not like me using this many resources to run tests 😂

@denisdefreyne denisdefreyne merged commit a266603 into main Dec 3, 2022
@denisdefreyne denisdefreyne deleted the denis/reliable-bin-write branch December 3, 2022 09:15
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.

Intermittent compile crashes with "Errno::EINVAL: Invalid argument @ io_write"
1 participant