Skip to content
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

s3io.Reader: reissue request on ECONNRESET #2106

Merged
merged 1 commit into from
Feb 11, 2021
Merged

Conversation

mattnibs
Copy link
Collaborator

If a "connection error" reset is encountered while reading a s3 object attempt
to restart the connection and resume read at the current offset.

This solves a bug found when trying to ingest several s3 hosted log files:
several files will stop ingesting with the error "connection reset by peer".
There seems to be a curious behavior of the s3 service that happens when
a single session maintains numerous long-running download connections to
various objects in a bucket- the service appears to reset connections at
random.

See: aws/aws-sdk-go#1242

Closes #2005

@mattnibs mattnibs requested review from a team and philrz February 10, 2021 21:55
If a "connection error" reset is encountered while reading a s3 object attempt
to restart the connection and resume read at the current offset.

This solves a bug found when trying to ingest several s3 hosted log files:
several files will stop ingesting with the error "connection reset by peer".
There seems to be a curious behavior of the s3 service that happens when
a single session maintains numerous long-running download connections to
various objects in a bucket- the service appears to reset connections at
random.

See: aws/aws-sdk-go#1242

Closes #2005
@mattnibs mattnibs changed the title s3io.Reader: reissue request on ERRCONNRESET s3io.Reader: reissue request on ECONNRESET Feb 11, 2021
@mattnibs mattnibs merged commit bdbef8b into master Feb 11, 2021
@mattnibs mattnibs deleted the s3-reader-retry branch February 11, 2021 16:07
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.

"read: connection reset by peer" after ~6 minutes during large "zapi postpath" from S3
3 participants