Skip to content

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 gismya and jimmycallin 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

4 participants