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

feat: remove orphan objects if copy fails at any point #531

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

jeqo
Copy link
Contributor

@jeqo jeqo commented Apr 4, 2024

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.

Be aware, the first commit includes a set of refactoring around RSM upload operations to cleanup and simplify the testing of the 2nd (main) commit. See commit messages for more details.

@jeqo jeqo force-pushed the jeqo/delete-orphan-files branch 2 times, most recently from 3d52a4e to c532ed6 Compare April 4, 2024 12:15
@jeqo jeqo marked this pull request as ready for review April 4, 2024 12:32
@jeqo jeqo requested a review from a team as a code owner April 4, 2024 12:32
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 requested a review from ivanyu April 18, 2024 07:35
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

2 participants