[#231] Fix get latest version node #231
No reviewers
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
4 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#231
Loading…
Reference in a new issue
No description provided.
Delete branch ":feature/fix_get_latest_node_version"
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?
We have the following problem. For example, if we created an object with the key a and an object with the key a/b (it is important that the name of the "folder" is the same as the name of the object), and then we call the aws rm --recursive command to the bucket in which they lie, then in the end the object with the key a it is not deleted.
This happens because when requesting a tree service to get a node of the object version, we get a node that is a secondary object a. The resulting node does not have an OID attribute, and as a result, further deletion of the object with the a key does not occur.
As a solution, an option is proposed in which we get the entire list of nodes by a certain path (key) and then choose the node of the object version we need ourselves, depending on the presence of the OID attribute and the timestamp value.
Signed-off-by: Roman Loginov r.loginov@yadro.com
[##] Fix get latest version nodeto [#231] Fix get latest version nodece19dea8e1
toffdd54712e
Probably we should also update CHANGELOG.md
ffdd54712e
to670576248a