Fix/Meta returns old expired objects #262
No reviewers
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No milestone
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#262
Loading…
Reference in a new issue
No description provided.
Delete branch "fix/meta-returns-old-expired-objects"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
fix/Meta returns old expired objectsto Fix/Meta returns old expired objectsed632f904e
to536ab6ec81
@ -261,1 +263,4 @@
}
// performs an unmarshalled object validity checks.
func unmarshalAndValidate(data []byte, currEpoch uint64) (*object.Object, error) {
Why have you decided to validate here instead of in final
Get
step, right before returning a result?can you, please, add details a little? validate what?
it is just best we can do if we have already unmarshaled an obj,
get
has multiplereturn
s so i just moved unmarshaling to that func. do you mean do validation viadefer
?I mean checking this not inside the transaction, but outside.
.Attributes()
allocates, iteration is not as fast as it could be and write tx can only execute in 1 thread.get
is used inDelete
, for example, do we have a test for deleting an expired object?oh, i see, did not think about that and forget at all that it executes inside a TX, fixed
yes, we have a couple
536ab6ec81
to4301674c27