services/tree: Fast sorted listing #1059
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
5 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1059
Loading…
Reference in a new issue
No description provided.
Delete branch "fyrchik/frostfs-node:fast-listing"
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?
services/tree: Fast sorted listingto WIP: services/tree: Fast sorted listing42a2d61bc3
to7cb9cd9eb0
7cb9cd9eb0
to336c3da181
336c3da181
to7c6d540724
Looks good. In s3-gw we will fix using sort flag
WIP: services/tree: Fast sorted listingto services/tree: Fast sorted listing@ -212,0 +227,4 @@
nodes, cursor, err = sh.TreeSortedByFilename(ctx, cid, treeID, nodeID, last, count)
if err != nil {
if err == shard.ErrPiloramaDisabled {
break
continue
, notbreak
- pilorama could be disabled only on single shardNo, it is a node-wide setting (
tree.enabled
). If it is disabled with shard mode, the error will be different.@ -156,1 +157,4 @@
// TreeSortedByFilename implements the Forest interface.
func (f *memoryForest) TreeSortedByFilename(_ context.Context, cid cid.ID, treeID string, nodeID Node, start string, count int) ([]NodeInfo, string, error) {
fmt.Println("LOG SORTED", nodeID, start, count)
debugee
fixed
7c6d540724
to03073679a8
Awesome