Repository navigation
@tus/s3-store: keep cached metadata in sync on length declaration and cleanup - #910
Merged
Merged
Conversation
… removal Signed-off-by: Ferhat Elmas <elmas.ferhat@gmail.com>
🦋 Changeset detectedLatest commit: da8a8f6 The changes in this PR will be included in the next version bump. This PR includes changesets to release 2 packages
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
|
I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #901, retaining @ferhatelmas’s commit and resolving the test conflict with current
main. Updating the contributor branch was denied (HTTP 403).remove().deleteExpired(), which bypassesremove(), so subsequent lookups do not use stale cached upload information after server cleanup.KvStoreboundary.FileKvStore.delete()usesfs.rm(..., {force: true}), preserving genuine failures without filesystem-specific handling in S3.FileKvStore, expiration cache eviction, absent cache entries, and eviction failures. Preserve existing empty-upload regressions and assert that missing multipart-upload lookups make no extra HEAD request.Final-object HEAD verification is deliberately excluded to avoid adding a sequential S3 request to every completed-upload lookup. The existing limitation remains: externally aborted uploads with surviving metadata can be reported as completed; #900 would also exempt these from expiration. This trade-off was accepted for short resume windows relative to multi-day lifecycle cleanup. Server HEAD/PATCH behavior and cleanup locking are unchanged here.
Includes patch changesets for
@tus/s3-storeand@tus/utils. Existing ChangesetsupdateInternalDependencies: patchconfiguration updates dependency ranges during the release version step.Verified locally:
npm run build,npm run format:check, andnpm run lint. Tests run in CI per repository instructions.Link to Devin session: https://app.devin.ai/sessions/13d351b16409431d8791d4164d8692e5
Open in Devin Desktop: https://app.devin.ai/desktop/session/13d351b16409431d8791d4164d8692e5?variant=devin
Requested by: @Murderlon