remote: Collect ETag in response, optimistically send that back in future updates#1386
remote: Collect ETag in response, optimistically send that back in future updates#1386imjasonh wants to merge 2 commits into
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1386 +/- ##
==========================================
- Coverage 74.19% 74.12% -0.07%
==========================================
Files 113 113
Lines 8458 8474 +16
==========================================
+ Hits 6275 6281 +6
- Misses 1575 1584 +9
- Partials 608 609 +1 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Maybe it's time to have formal unwrapping? I was thinking something more along the lines of #1387 for the |
|
This Pull Request is stale because it has been open for 90 days with |
|
Hello, I know this PR is currently closed, but I'm interested in picking up and running with the ETag support here. Is it just tests that are missing for this, or would the "Formal unwrapping" approach be a requirement for a MVP here? |
When pulling a manifest, if the response includes an
ETagheader, hold on to it, and send that back in anIf-Matchrequest header when putting that manifest back.This should prevent some race conditions during read-modify-write cycles, if the registry respects the
If-Matchheader, since the resource's etag will have changed when the other client updated it.TODO: Add test.