Skip to content

Conversation

@JuArce
Copy link
Collaborator

@JuArce JuArce commented Jul 24, 2025

Retry logic for batches download

Retry is not working when the server accepts the TCP connection but headers are not sent. To test you can change the S3 bucket address in the code to a localhost one, and run this:

  # Accept connections but never send response
  ncat -l -p 8080 -k

or

  ncat -l -p 8080 -k --sh-exec 'sleep 3600'

On staging branch you will see no retries, on this one, the retries will be done properly.

We also changed the timeout for the s3 fetching task to 3 min, since with the retry logic it could last more than 1 min

Description

closes #2029

Type of change

  • Bug fix

Checklist

  • “Hotfix” to testnet, everything else to staging
  • Linked to Github Issue

@JuArce JuArce self-assigned this Jul 24, 2025
@JuArce JuArce linked an issue Jul 24, 2025 that may be closed by this pull request
@JuArce JuArce marked this pull request as ready for review July 29, 2025 14:07
@MauroToscano MauroToscano self-requested a review July 29, 2025 14:20
Copy link
Contributor

@MauroToscano MauroToscano left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to fix the issue

Copy link
Collaborator Author

@JuArce JuArce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MauroToscano MauroToscano merged commit 5fdb723 into testnet Jul 31, 2025
3 checks passed
@MauroToscano MauroToscano deleted the 2029-hotifxoperator-retry-logic-for-batches-download branch July 31, 2025 16:47
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.

hotifx(operator): retry logic for batches download

4 participants