CLDSRV-835: Fix flakiness tcp socket hang up#6115
Conversation
This multiple concurrent uploads can help trigger that flakiness case
```
Object Part Copy / With v4 signature
When copy source was put by MPU
"before each" hook for "should copy a part from a source bucket to a different destination bucket":
TimeoutError: socket hang up
at Socket.socketOnEnd (node:_http_client:598:25)
at Socket.emit (node:events:531:35)
at endReadableNT (node:internal/streams/readable:1698:12)
at process.processTicksAndRejections (node:internal/process/task_queues:90:21)
```
Hello bourgoismickael,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Request integration branchesWaiting for integration branch creation to be requested by the user. To request integration branches, please comment on this pull request with the following command: Alternatively, the |
|
/create_integration_branches |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files
@@ Coverage Diff @@
## development/9.3 #6115 +/- ##
===================================================
- Coverage 84.25% 84.24% -0.01%
===================================================
Files 206 206
Lines 13251 13251
===================================================
- Hits 11164 11163 -1
- Misses 2087 2088 +1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
Review by Claude Code |
1135239 to
c4c44f0
Compare
| // an idle connection just as the client picks it from the pool. | ||
| const uploadWithRetry = (params, attempt = 0) => | ||
| s3.send(new UploadPartCommand(params)).catch(err => { | ||
| if (attempt < 3) { |
There was a problem hiding this comment.
The retry catches all errors, not just the transient socket hang up this PR targets. Consider narrowing the condition to only retry on TimeoutError or connection-related errors, so genuine failures (e.g. NoSuchUpload, auth errors) fail fast instead of retrying 3 times.
— Claude Code
There was a problem hiding this comment.
It's ok like that, other errors should not happen, 3 retries for non transient errors is not that bad.
|
|
@bert-e reset |
Reset completeI have successfully deleted this pull request's integration branches. The following options are set: create_integration_branches |
Integration data createdI have created the integration data for the additional destination branches.
The following branches will NOT be impacted:
You can set option The following options are set: create_integration_branches |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
The following options are set: create_integration_branches |
|
/approve |
In the queueThe changeset has received all authorizations and has been added to the The changeset will be merged in:
The following branches will NOT be impacted:
There is no action required on your side. You will be notified here once IMPORTANT Please do not attempt to modify this pull request.
If you need this pull request to be removed from the queue, please contact a The following options are set: approve, create_integration_branches |
|
I have successfully merged the changeset of this pull request
The following branches have NOT changed:
Please check the status of the associated issue CLDSRV-835. Goodbye bourgoismickael. |
This multiple concurrent uploads can help trigger that flakiness case