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

BUG: AWS S3 write closer does not wait for the inner goroutine to close #107

Open
peczenyj opened this issue Jun 13, 2024 · 0 comments
Open

Comments

@peczenyj
Copy link
Contributor

Hello

By using the awss3 store, we note that in the shutdown of our application we do not upload the remaining data.

Checking the reason, we discover that if we add a sleep of some seconds, it works.

This happens because this goroutine:

go func() {

does not have any kind of synchronization / waitgroup etc and during a shutdown, the write closer Close method returns but we do not finish the actual upload in background.

I see that the azure package had a wrapper thar uses an errgroup and this ensure that azure objects close properly. the same must be done in awss3

@peczenyj peczenyj changed the title AWS S3 write closer does not wait for the inner goroutine to close BUG: AWS S3 write closer does not wait for the inner goroutine to close Dec 3, 2024
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

No branches or pull requests

1 participant