8000 Add hardening to writing partial slab data on download by peterjan · Pull Request #1891 · SiaFoundation/renterd · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Add hardening to writing partial slab data on download #1891

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

Merged
merged 3 commits into from
May 20, 2025

Conversation

peterjan
Copy link
Member
@peterjan peterjan commented May 20, 2025

This PR is related to #1889. I can't reproduce it by uploading files myself, but I can reproduce the exact issue by writing an empty slice in place of partial slab data. Note that this won't fail the download, but merely add a log entry to indicate it is in fact a slab without shards.

@peterjan peterjan self-assigned this May 20, 2025
@peterjan peterjan requested a review from ChrisSchinnerl May 20, 2025 12:25
@github-project-automation github-project-automation bot moved this to In Progress in Sia May 20, 2025
Copy link
Member Author
@peterjan peterjan left a comment

Choose a reason for hiding this comment

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

@ChrisSchinnerl I was surprised to see there was no unique on object_index and db_object_id. Do you remember whether that was intentional? Do we still want to add it at this point in time? I was thinking no but perhaps we could consider checking for it like so d390b9c and erroring out.

@peterjan peterjan marked this pull request as ready for review May 20, 2025 12:39
@ChrisSchinnerl ChrisSchinnerl merged commit 6f5444e into master May 20, 2025
19 checks passed
@ChrisSchinnerl ChrisSchinnerl deleted the pj/download-partial-slab-hardening-and-logging branch May 20, 2025 13:02
@github-project-automation github-project-automation bot moved this from In Progress to Done in Sia May 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants
0