-
Notifications
You must be signed in to change notification settings - Fork 250
CLDSRV-632 ✨ put metadata edge cases #5913
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
base: development/9.1
Are you sure you want to change the base?
CLDSRV-632 ✨ put metadata edge cases #5913
Conversation
Hello darkisdude,My role is to assist you with the merge of this Available options
Available commands
Status report is not available. |
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
4e1523f
to
300aaef
Compare
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Codecov Report❌ Patch coverage is
Additional details and impacted files
@@ Coverage Diff @@
## development/9.1 #5913 +/- ##
===================================================
+ Coverage 83.72% 83.74% +0.01%
===================================================
Files 191 191
Lines 12233 12258 +25
===================================================
+ Hits 10242 10265 +23
- Misses 1991 1993 +2
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
5589b9c
to
59ee1fa
Compare
0b5a099
to
9c143cb
Compare
Incorrect fix versionThe
Considering where you are trying to merge, I ignored possible hotfix versions and I expected to find:
Please check the |
Waiting for approvalThe following approvals are needed before I can proceed with the merge:
|
b5c2131
to
da6bfb6
Compare
e0ba601
to
1b518c1
Compare
1b518c1
to
dfc7d0d
Compare
bb7c419
to
dfc7d0d
Compare
1842539
to
d04c92d
Compare
So I took time to review tests and path. With the condition |
7e6053c
to
69b41b7
Compare
cae1858
to
4357e13
Compare
// if the target does not exist, return an error to | ||
// backbeat, who will have to retry the operation as a | ||
// complete replication | ||
return callback(errors.ObjNotFound); | ||
} | ||
// use original data locations and encryption info |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these comments do not seem useless at all, they should be kept
// To prevent this, the versionId field is only included in options when it is defined. | ||
if (versionId !== undefined) { | ||
options.versionId = versionId; | ||
omVal.versionId = versionId; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
did you perform such second review? (you can resolve this comment once you confirmed)
let masterMD; | ||
|
||
try { | ||
masterMD = await metadata.getObjectMDPromised(bucketName, objectKey, {}, log); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this introduces an extra metadata IO in case of insert (first one was in standardMetadataValidateBucketAndObj
, which returned -or not- the version document) : this extra I/O can be skipped if we know the expected semantics of the putMetadata
call (i.e. is it an insertion → can directly lookup the "master" in standardMetadataValidateBucketAndObj
; or an update → must lookup the version) -OR- update standardMetadataValidateBucketAndObj
(and everything below) to be able to return both the version and/or master...
➡ maybe acceptable to keep the extra I/O for now, but we should create a ticket for tracking this, or make a note in https://scality.atlassian.net/browse/ARTESCA-8449
Description
Reactivate some tests that were disable because some edge case were not covered.
Motivation and context
Manage 2 use case under the put metadata route:
Related issues
https://scality.atlassian.net/browse/CLDSRV-632
scality/Arsenal#2490