Skip to content

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

Open
@peczenyj

Description

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions