services/tree: Fast sorted listing #1059

Merged
fyrchik merged 1 commits from fyrchik/frostfs-node:fast-listing into master 2024-04-01 12:37:56 +00:00
There is no content yet.
fyrchik added the
kludge
label 2024-03-28 12:54:20 +00:00
fyrchik added 1 commit 2024-03-28 12:54:25 +00:00
Tests and linters / Tests (1.21) (pull_request) Failing after 9s Details
DCO action / DCO (pull_request) Failing after 1m46s Details
Build / Build Components (1.21) (pull_request) Successful in 2m20s Details
Vulncheck / Vulncheck (pull_request) Successful in 3m6s Details
Build / Build Components (1.20) (pull_request) Successful in 3m59s Details
Tests and linters / Lint (pull_request) Failing after 4m15s Details
Tests and linters / Staticcheck (pull_request) Successful in 5m20s Details
Tests and linters / gopls check (pull_request) Successful in 8m11s Details
Tests and linters / Tests (1.20) (pull_request) Successful in 8m43s Details
Tests and linters / Tests with -race (pull_request) Successful in 9m40s Details
42a2d61bc3
services/tree: Fast sorted listing
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
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

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
Poster
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
Poster
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
Collaborator

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 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
There is no content yet.