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

fix(logging): race condition in S3 logging #540

Merged
merged 2 commits into from
Jul 1, 2021
Merged

Conversation

rix0rrr
Copy link
Collaborator

@rix0rrr rix0rrr commented Jul 1, 2021

The 'boto3.client' method is not thread safe: boto/boto3#1592

Put a lock around initializing an S3 client, so the two threads that
might do this in parallel don't stomp on each other.

The 'boto3.client' method is not thread safe: boto/boto3#1592

Put a lock around initializing an S3 client, so the two threads that
might do this in parallel don't stomp on each other.
@rix0rrr rix0rrr requested review from Felienne and fpereiro July 1, 2021 08:37
Copy link
Contributor

@fpereiro fpereiro left a comment

Choose a reason for hiding this comment

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

Great catch!

@fpereiro fpereiro merged commit 11dda7c into main Jul 1, 2021
@fpereiro fpereiro deleted the fix-s3-race-condish branch July 1, 2021 09:19
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.

2 participants