Skip to content

[Swift] wait for DLO segments to show up when Close()ing the writer - #1650

Merged
RichardScothern merged 1 commit into
distribution:masterfrom
majewsky:swift/wait-for-dlo-segments
May 2, 2016
Merged

RichardScothern merged 1 commit into
distribution:masterfrom
majewsky:swift/wait-for-dlo-segments

Conversation

@majewsky

@majewsky majewsky commented Apr 19, 2016 •

Copy link
Copy Markdown
Contributor

Not just when Commit()ing the result. This fixes some errors I observed when the layer (i.e. the DLO) is Stat()ted immediately after closing, and reports the wrong file size because the container listing is not yet up-to-date (usually recognized by the error message "digest invalid: provided digest did not match uploaded content").

Related to #1013 and maybe to #1539 aka moby/moby#21290.

Not just when Commit()ing the result. This fixes some errors I observed
when the layer (i.e. the DLO) is Stat()ed immediately after closing,
and reports the wrong file size because the container listing is not
yet up-to-date.

Signed-off-by: Stefan Majewsky <[email protected]>
@codecov-io

Copy link
Copy Markdown

Current coverage is 51.18%

Merging #1650 into master will decrease coverage by -6.76% as of 9a67520

@@            master   #1650   diff @@
======================================
  Files          122     122       
  Stmts        10683   10687     +4
  Branches       838     749    -89
  Methods          0       0       
======================================
- Hit           6190    5470   -720
+ Partial        838     749    -89
- Missed        3655    4468   +813

Review entire Coverage Diff as of 9a67520


Uncovered Suggestions

  1. +0.30% via .../driver/s3-aws/s3.go#732...763
  2. +0.28% via .../driver/s3-aws/s3.go#268...297
  3. +0.21% via .../driver/s3-aws/s3.go#884...906
  4. See 7 more...

Powered by Codecov. Updated on successful CI builds.

@RichardScothern

Copy link
Copy Markdown

LGTM. @nevermosby : second opinon please

@majewsky

majewsky commented May 2, 2016

Copy link
Copy Markdown
Contributor Author

Bump. I want to extend this pattern to more request types to further stabilize the DLO support, so it'd be nice to have this merged.

@tonyhb

tonyhb commented May 2, 2016

Copy link
Copy Markdown
Contributor

Yep, looks good

@RichardScothern
RichardScothern merged commit 5d08dfa into distribution:master May 2, 2016
@majewsky
majewsky deleted the swift/wait-for-dlo-segments branch May 3, 2016 14:18
cezarsa added a commit to cezarsa/swift that referenced this pull request Aug 22, 2016
This add changes similar to distribution/distribution#1650. Both DLO and SLO
are checked for consistency.
@cezarsa cezarsa mentioned this pull request Aug 24, 2016
3 tasks done
@majewsky majewsky mentioned this pull request Nov 6, 2017
6 of 7 tasks
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Apr 22, 2021
…-segments

[Swift] wait for DLO segments to show up when Close()ing the writer
thaJeztah pushed a commit to thaJeztah/distribution that referenced this pull request Jan 19, 2022
…-segments

[Swift] wait for DLO segments to show up when Close()ing the writer
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.

5 participants