Sorting in listing doesn't work as expected on specific keys #561
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 milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#561
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
According to spec https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html listing should be lexicographical sorted.
Expected Behavior
Listing order always correct
Current Behavior
Listing order is not always correct. For example we have keys
bar baz/foo
bar/baz
From storage node (during sorted
getSubTree
) we gets them in the following orderbar/baz
bar baz/foo
That because of
bar
<bar baz
Possible Solution
Steps to Reproduce (for bugs)
Run test in
handler
package:Context
This leads to
fatal error: Error during pagination: The same next token was received twice: {'ContinuationToken': 'H4hEvppC6XJRFafLriNy99Y8vaFkqtAKqLt26xecjqjb'}
inaws s3 rm
commandRegression
Probably yes
Your Environment
v0.29.3
,v0.31.0-rc.6