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

refactor: decouple chunking disabling from file size #535

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jeqo
Copy link
Contributor

@jeqo jeqo commented Apr 8, 2024

Chunking is defined by original chunk size, not original content size.
This PR removed the scenario where these two sizes are conflated (e.g. passing original size zero to disable chunking, etc.).

Depends on #531, see last commit for changes on this PR

jeqo added 2 commits April 5, 2024 19:42
RSM upload steps are messy and hard to read, mainly because of the encryption metadata.
By moving the instantiation to the data key and aad, we can separate the upload stages clearly.
Given that there are at least 3 objects uploaded per segment, and it could fail at any stage, the plugin should guard that the chances for orphan objects is minimal.
@jeqo jeqo force-pushed the jeqo/flag-chunking-disabled branch 2 times, most recently from 477d487 to abc7c8f Compare April 11, 2024 08:46
Chunking is defined by original chunk size, not original content size.
This PR removed the scenario where these two sizes are conflated (e.g. passing original size zero to disable chunking, etc.).
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

1 participant