services/tree: Fast sorted listing #1059

Merged
fyrchik merged 1 commit from fyrchik/frostfs-node:fast-listing into master 2024-04-01 12:37:56 +00:00
Owner
No description provided.
fyrchik added the
kludge
label 2024-03-28 12:54:20 +00:00
fyrchik changed title from services/tree: Fast sorted listing to WIP: services/tree: Fast sorted listing 2024-03-28 12:54:36 +00:00
fyrchik force-pushed fast-listing from 42a2d61bc3 to 7cb9cd9eb0 2024-03-29 07:41:59 +00:00 Compare
fyrchik force-pushed fast-listing from 7cb9cd9eb0 to 336c3da181 2024-03-29 07:44:23 +00:00 Compare
fyrchik requested review from dkirillov 2024-03-29 10:24:54 +00:00
fyrchik requested review from storage-core-committers 2024-03-29 10:24:54 +00:00
fyrchik requested review from storage-core-developers 2024-03-29 10:24:54 +00:00
fyrchik force-pushed fast-listing from 336c3da181 to 7c6d540724 2024-03-29 10:29:17 +00:00 Compare
Member

Looks good. In s3-gw we will fix using sort flag

Looks good. In s3-gw we will fix using sort flag
fyrchik changed title from WIP: services/tree: Fast sorted listing to services/tree: Fast sorted listing 2024-03-29 12:27:53 +00:00
dstepanov-yadro reviewed 2024-04-01 10:00:47 +00:00
@ -212,0 +227,4 @@
nodes, cursor, err = sh.TreeSortedByFilename(ctx, cid, treeID, nodeID, last, count)
if err != nil {
if err == shard.ErrPiloramaDisabled {
break

continue, not break - pilorama could be disabled only on single shard

`continue`, not `break` - pilorama could be disabled only on single shard
Author
Owner

No, it is a node-wide setting (tree.enabled). If it is disabled with shard mode, the error will be different.

No, it is a node-wide setting (`tree.enabled`). If it is disabled with shard mode, the error will be different.
dstepanov-yadro reviewed 2024-04-01 10:32:22 +00:00
@ -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

debugee
Author
Owner

fixed

fixed
fyrchik force-pushed fast-listing from 7c6d540724 to 03073679a8 2024-04-01 10:48:29 +00:00 Compare
dstepanov-yadro approved these changes 2024-04-01 10:50:57 +00:00
acid-ant approved these changes 2024-04-01 11:15:23 +00:00
aarifullin approved these changes 2024-04-01 11:20:04 +00:00
aarifullin left a comment
Member

Awesome

Awesome
fyrchik merged commit e12fcc041d into master 2024-04-01 12:37:52 +00:00
fyrchik deleted branch fast-listing 2024-04-10 08:09:00 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
5 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#1059
No description provided.