Repository navigation
Blobwriter: call BlobWriter.Size after BlobWriter.Close - #1706
Merged
RichardScothern merged 3 commits intoJun 13, 2016
Merged
Conversation
aibaars
force-pushed
the
registry-size-close
branch
from
May 6, 2016 06:57
b87895a to
ff1e0c6
Compare
Current coverage is 59.90%
@@ master #1706 diff @@
==========================================
Files 121 121
Lines 10578 10574 -4
Methods 0 0
Messages 0 0
Branches 0 0
==========================================
- Hits 7149 6334 -815
- Misses 3429 4240 +811
Partials 0 0
|
aibaars
force-pushed
the
registry-size-close
branch
from
May 6, 2016 11:30
ff1e0c6 to
167fb4c
Compare
Signed-off-by: Arthur Baars <[email protected]>
Signed-off-by: Arthur Baars <[email protected]>
Signed-off-by: Arthur Baars <[email protected]>
aibaars
force-pushed
the
registry-size-close
branch
from
May 6, 2016 12:04
167fb4c to
eca581c
Compare
Contributor
Author
|
@RichardScothern I changed the app and api tests to use a modified version of the inmemory driver that simulates buffering. This way the test suite can reproduce the error. |
|
Nice one @aibaars . I'm going to test this against the whole driver suite |
|
LGTM based on my testing on S3, GCS and swift |
thaJeztah
pushed a commit
to thaJeztah/distribution
that referenced
this pull request
Apr 22, 2021
Blobwriter: call BlobWriter.Size after BlobWriter.Close
thaJeztah
pushed a commit
to thaJeztah/distribution
that referenced
this pull request
Jan 19, 2022
Blobwriter: call BlobWriter.Size after BlobWriter.Close
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
@RichardScothern @aaronlehmann This is a patch for #1698 as alternative to #1703 . In contrast to #1703 this PR attempts to fix the root cause (ie a call of Size on an upload that is not (fully) flushed to the backing storage.
The first commit changes the tests so they fail when Size is called on a "dirty" writer. The second commit ensures that Size is not called before Close when committing an upload. The third commit addresses the case where Cancel is called after closing an upload. The Cancel operation used to fail in that case.