Skip to content

[release/1.5 backport] Fix missing Body.Close() calls on push to docker remote#5718

Merged
dmcgowan merged 1 commit intocontainerd:release/1.5from
thaJeztah:1.5_backport_docker_push_close_body
Jul 12, 2021
Merged

[release/1.5 backport] Fix missing Body.Close() calls on push to docker remote#5718
dmcgowan merged 1 commit intocontainerd:release/1.5from
thaJeztah:1.5_backport_docker_push_close_body

Conversation

@thaJeztah
Copy link
Copy Markdown
Member

backport of #5712

Discovered this while using HTTP tracing via OpenTelemetry inside of
buildkitd, where the trace spans were not being reported for the
registry PUT http requests. The spans are only reported on the Close
for the Body, after adding these Close calls, the spans are reported as
expected.

Signed-off-by: coryb [email protected]
(cherry picked from commit 894b6ae)
Signed-off-by: Sebastiaan van Stijn [email protected]

Discovered this while using HTTP tracing via OpenTelemetry inside of
buildkitd, where the trace spans were not being reported for the
registry PUT http requests.  The spans are only reported on the Close
for the Body, after adding these Close calls, the spans are reported as
expected.

Signed-off-by: coryb <[email protected]>
(cherry picked from commit 894b6ae)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@thaJeztah thaJeztah changed the title [release/1.5 backort] Fix missing Body.Close() calls on push to docker remote [release/1.5 backport] Fix missing Body.Close() calls on push to docker remote Jul 12, 2021
@theopenlab-ci
Copy link
Copy Markdown

theopenlab-ci Bot commented Jul 12, 2021

Build succeeded.

@dmcgowan dmcgowan added this to the 1.5.3 milestone Jul 12, 2021
@dmcgowan dmcgowan merged commit d4afc82 into containerd:release/1.5 Jul 12, 2021
@thaJeztah thaJeztah deleted the 1.5_backport_docker_push_close_body branch July 16, 2021 19:34
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.

4 participants