Skip to content

fix: Single-part uploads not retried when request fails #122

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

Conversation

lucaas
Copy link
Contributor

@lucaas lucaas commented Jun 13, 2023

Resolves FT-6488286c-04b7-4f74-a46a-991236937e79

  • I have added automatic tests where applicable
  • The PR title is suitable as a release note
  • The PR contains a description of what has been changed
  • The description contains manual test instructions

Changes

Single-part uploads tried to cleanup after a failed upload attempt, causing the exponential back-off to not work as expected. Moved the cleanup to after all attempts fail.

Also set the aborted flag so that an upload that is aborted using the XHR option is not retried again.

Test

Test together with https://github.com/ftrackhq/frontend/pull/714

Block the upload domain:

image

Attempt to upload a file < 16 MB, and verify that if you then unblock the domain again it succeeds.

@lucaas lucaas requested review from jimmycallin and gismya June 13, 2023 19:04
@lucaas lucaas requested a review from a team as a code owner June 13, 2023 19:04
@gismya gismya merged commit 977c70f into main Jun 14, 2023
@gismya gismya deleted the backlog/multipart-upload-in-studio/single-part-uploads-not-retried-when-failing-2 branch June 14, 2023 07:34
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.

3 participants