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

Close tarsplit gzip writer when creating tar-split.json.gz files during layer migration #20458

Merged
merged 1 commit into from Feb 19, 2016

Conversation

aaronlehmann
Copy link
Contributor

There is a missing call to Close on the gzip.Writer that is used to
compress newly created tar-split files during layer migration. This can
result in corrupt tar-split files that later cause docker push and
docker save to fail. The Close call is necessary to flush buffered data
to the stream.

Fixes #20104

cc @tonistiigi @dmcgowan

…ng layer migration

There is a missing call to Close on the gzip.Writer that is used to
compress newly created tar-split files during layer migration. This can
result in corrupt tar-split files that later cause docker push and
docker save to fail. The Close call is necessary to flush buffered data
to the stream.

Fixes: moby#20104

Signed-off-by: Aaron Lehmann <aaron.lehmann@docker.com>
@tonistiigi
Copy link
Member

LGTM

2 similar comments
@calavera
Copy link
Contributor

LGTM

@dmcgowan
Copy link
Member

LGTM

@LK4D4
Copy link
Contributor

LK4D4 commented Feb 18, 2016

LGTM

icecrime pushed a commit that referenced this pull request Feb 19, 2016
Close tarsplit gzip writer when creating tar-split.json.gz files during layer migration
@icecrime icecrime merged commit 7068722 into moby:master Feb 19, 2016
@tiborvass tiborvass mentioned this pull request Feb 20, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants