Repository navigation
Support target snapshot references on prepare - #3793
Conversation
|
Build succeeded.
|
Codecov Report
@@ Coverage Diff @@
## master #3793 +/- ##
==========================================
+ Coverage 42.27% 42.34% +0.06%
==========================================
Files 130 130
Lines 14577 14683 +106
==========================================
+ Hits 6162 6217 +55
- Misses 7501 7540 +39
- Partials 914 926 +12
Continue to review full report at Codecov.
|
d93bf50 to
d3b384c
Compare
|
Build succeeded.
|
d3b384c to
df4e1c7
Compare
|
Build succeeded.
|
estesp
left a comment
There was a problem hiding this comment.
Finished review; looks good but I found two minor typos that would be nice to fix for clarity of an error message and a comment.
There was a problem hiding this comment.
minor typo, but could be confusing when searching for errors: s/snaphost/snapshot/
There was a problem hiding this comment.
for clarity remove the word is so that it reads a prefix of ".." or "..".
|
@dmcgowan Any updates on this PR:smile:? |
The parent property may be empty but always exists. Signed-off-by: Derek McGowan <[email protected]>
Allows backend snapshots to bring existing snapshots into a namespace without requiring clients to fully snapshots when the target reference is known. Backend snapshots must explicitly implement this functionality, it is equivalent to sharing across namespaces and is up to the backend to use the label when it is given or ignore it. This enables remote snapshot functionality for a backend to query for a target snapshot before a client has performed any work to create that snapshot. Signed-off-by: Derek McGowan <[email protected]>
df4e1c7 to
526c0db
Compare
|
Updated |
|
Build succeeded.
|
Allows backend snapshots to bring existing snapshots into a namespace without requiring clients to fully snapshots when the target reference is known. Backend snapshots must explicitly implement this functionality, it is equivalent to sharing across namespaces and is up to the backend to use the label when it is given or ignore it.
This enables remote snapshot functionality for a backend to query for a target snapshot before a client has performed any work to create that snapshot.
Further documentation is needed. I will likely create a documented related to remote snapshotters when the remainder of the work is done for those. Additionally, the behavior of snapshotters in regards to errors (and these labels) should be more fully defined in the snapshot interface definition.
There is a change here to change the behavior of the snapshot filter used by walk. Since there is no "not exists" filter for parent, it does not make sense to ever have a parent not exist from the perspective of the filter. This allows snapshots to be filtered for with parent or without parents by
parent!=""orparent=="", previouslyparent==""would have failed to match.