-
Notifications
You must be signed in to change notification settings - Fork 27
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
🐛 Attempt to fix 400 RequestTimeout when uploading to S3 ⚠️ #4996
🐛 Attempt to fix 400 RequestTimeout when uploading to S3 ⚠️ #4996
Conversation
4b2f5da
to
cbf45d6
Compare
…imcore-forked into pr-osparc-404-bad-request
Codecov Report
@@ Coverage Diff @@
## master #4996 +/- ##
=========================================
- Coverage 87.1% 87.0% -0.1%
=========================================
Files 1243 907 -336
Lines 51132 40099 -11033
Branches 1081 198 -883
=========================================
- Hits 44549 34921 -9628
+ Misses 6345 5129 -1216
+ Partials 238 49 -189
Flags with carried forward coverage won't be shown. Click here to find out more.
|
9fb4502
to
746ca49
Compare
…imcore-forked into pr-osparc-404-bad-request
…imcore-forked into pr-osparc-404-bad-request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check how you raise your exception.. there is dead code
packages/simcore-sdk/src/simcore_sdk/node_ports_common/exceptions.py
Outdated
Show resolved
Hide resolved
packages/simcore-sdk/src/simcore_sdk/node_ports_common/file_io_utils.py
Outdated
Show resolved
Hide resolved
packages/simcore-sdk/src/simcore_sdk/node_ports_common/filemanager.py
Outdated
Show resolved
Hide resolved
packages/simcore-sdk/src/simcore_sdk/node_ports_common/exceptions.py
Outdated
Show resolved
Hide resolved
packages/simcore-sdk/src/simcore_sdk/node_ports_common/filemanager.py
Outdated
Show resolved
Hide resolved
…imcore-forked into pr-osparc-404-bad-request
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks! just think of updating the description of your PR
Code Climate has analyzed commit 4fcb191 and detected 0 issues on this pull request. View more on Code Climate. |
Kudos, SonarCloud Quality Gate passed!
|
What do these changes do?
This is an enhancement based on #4483
Attempts to fix a long running issue when uploading files to S3, sometimes the AWS S3 backend will reply with
400 ReuestTimeout
.When receiving such a reply the entire multipart upload is stopped and another one will be started once more. New multipart upload links will be requested.
The retry is only applied to the above mentioned case. A specific error was created and isolated to better be propagated and handled.
To disable this feature set
DIRECTOR_V2_NODE_PORTS_400_REQUEST_TIMEOUT_ATTEMPTS
to 0. No retry will happen and the error will just bubble up as it previously did, it will now show asAWSS3400RequestTimeOutError
.Devops⚠️
No actions are required from devops. Be aware about the following:
DIRECTOR_V2_NODE_PORTS_400_REQUEST_TIMEOUT_ATTEMPTS
to thedirector-v2
which will be sent to thedynamic-sidecar
. Inside it,nodeports
captures the env var and uses it for the retry.Related issue/s
How to test
DevOps Checklist