Skip to content
This repository was archived by the owner on Mar 28, 2020. It is now read-only.

close s3 reader after saving snapshot#1976

Merged
fanminshi merged 1 commit intocoreos:masterfrom
daniel-garcia:fixBackupLeak
Jul 6, 2018
Merged

close s3 reader after saving snapshot#1976
fanminshi merged 1 commit intocoreos:masterfrom
daniel-garcia:fixBackupLeak

Conversation

@daniel-garcia
Copy link
Contributor

After uploading the snapshot, the backup operator performs a get
to ensure that the snapshot was actually saved. The problem is that
the resulting get request body is not closed. This causes a leak
of http connections.

fixes #1965

After uploading the snapshot, the backup operator performs a get
to ensure that the snapshot was actually saved. The problem is that
the resulting get request body is not closed. This causes a leak
of http connections.

fixes coreos#1965
@drewwells
Copy link
Contributor

Definitely need this, we're seeing memory leaks in backup operator

@fanminshi
Copy link
Contributor

lgtm thanks!

@fanminshi
Copy link
Contributor

@daniel-garcia one last thing, could you update the changelog with this fix https://github.com/coreos/etcd-operator/blob/master/CHANGELOG.md#fixed

@drewwells
Copy link
Contributor

@fanminshi #1977

@fanminshi fanminshi merged commit 9152f09 into coreos:master Jul 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

etcd backup operator TCP socket memory leak

3 participants