Skip to content

Uploads: Make more resistent to network or OS issues#145

Open
guruz wants to merge 1 commit intomainfrom
fix_78_harder
Open

Uploads: Make more resistent to network or OS issues#145
guruz wants to merge 1 commit intomainfrom
fix_78_harder

Conversation

@guruz
Copy link
Copy Markdown
Contributor

@guruz guruz commented May 8, 2026

Both the OS killing workers or just general network issues can accumulate failures that at some point lead to 0 byte files.

For #78

CC @zerox80

@guruz guruz added this to the 1.2.3 milestone May 8, 2026
@zerox80
Copy link
Copy Markdown
Contributor

zerox80 commented May 9, 2026

i did a deeper pass and i think the direction is good, especially letting filerequestbody throw instead of silently sending an empty put.

one thing i would fix before merging: the cache check can reuse a non-empty cache file that belongs to another upload with the same target path. that could upload the wrong bytes. i think the cache path should include the upload id, or we should only reuse the cache when we can prove it belongs to the same content uri.

Both the OS killing workers or just general network issues
can accumulate failures that at some point lead to
0 byte files.

For #78
@guruz guruz force-pushed the fix_78_harder branch from 29ddedb to 721f6d1 Compare May 9, 2026 12:20
@guruz
Copy link
Copy Markdown
Contributor Author

guruz commented May 9, 2026

i think the cache path should include the upload id,

Nice, I updated the PR to have it inside the temporary filename.

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.

2 participants