[#472] tree: Don't use sorted GetSubTree for nodes without FileName #472

Merged
alexvanin merged 1 commit from dkirillov/frostfs-s3-gw:bugfix/sorted_get_sub_tree into master 2024-08-27 09:43:29 +00:00
Member

Sorted GetSubTree doesn't return nodes without FileName attribute
if there are more than 1000 nodes in subtree

Signed-off-by: Denis Kirillov d.kirillov@yadro.com

Sorted GetSubTree doesn't return nodes without FileName attribute if there are more than 1000 nodes in subtree Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov self-assigned this 2024-08-21 12:17:13 +00:00
dkirillov added 1 commit 2024-08-21 12:17:25 +00:00
[#472] tree: Don't use sorted GetSubTree for nodes without FileName
Some checks failed
/ DCO (pull_request) Successful in 1m35s
/ Vulncheck (pull_request) Successful in 2m10s
/ Builds (1.21) (pull_request) Successful in 2m15s
/ Builds (1.22) (pull_request) Successful in 2m9s
/ Lint (pull_request) Failing after 2m12s
/ Tests (1.21) (pull_request) Failing after 2m26s
/ Tests (1.22) (pull_request) Failing after 2m8s
68e0c18ada
Sorted GetSubTree doesn't return nodes without FileName attribute
if there are more than 1000 nodes in subtree

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov force-pushed bugfix/sorted_get_sub_tree from 68e0c18ada to 2a48b022b9 2024-08-21 12:24:36 +00:00 Compare
dkirillov requested review from storage-services-committers 2024-08-21 12:27:30 +00:00
dkirillov requested review from storage-services-developers 2024-08-21 12:27:35 +00:00
Owner

I think we can remove WIP on master branch fix.

I think we can remove WIP on master branch fix.
alexvanin reviewed 2024-08-22 14:08:43 +00:00
@ -35,3 +35,3 @@
GetNodes(ctx context.Context, p *GetNodesParams) ([]NodeResponse, error)
GetSubTree(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32) ([]NodeResponse, error)
GetSubTree(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32, sort bool) ([]NodeResponse, error)
GetSubTreeStream(ctx context.Context, bktInfo *data.BucketInfo, treeID string, rootID []uint64, depth uint32) (SubTreeStream, error)
Owner

If we going to use streaming later in #469, shouldn't we adopt sort flag in streaming method too? Or it won't be used for anything besides getSubTreeMultipartUpload?

If we going to use streaming later in https://git.frostfs.info/TrueCloudLab/frostfs-s3-gw/issues/469, shouldn't we adopt `sort` flag in streaming method too? Or it won't be used for anything besides `getSubTreeMultipartUpload`?
Author
Member

We should adopt this flag only if we start streaming parts and not only multiparts

We should adopt this flag only if we start streaming parts and not only multiparts
alexvanin marked this conversation as resolved
alexvanin approved these changes 2024-08-23 08:32:17 +00:00
dkirillov force-pushed bugfix/sorted_get_sub_tree from 2a48b022b9 to 75e536492a 2024-08-26 07:45:09 +00:00 Compare
dkirillov changed title from WIP: [#472] tree: Don't use sorted GetSubTree for nodes without FileName to [#472] tree: Don't use sorted GetSubTree for nodes without FileName 2024-08-26 07:45:49 +00:00
alexvanin added this to the v0.30.3 milestone 2024-08-27 09:43:24 +00:00
alexvanin merged commit d76c4fe2a2 into master 2024-08-27 09:43:29 +00:00
alexvanin deleted branch bugfix/sorted_get_sub_tree 2024-08-27 09:43:31 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No milestone
No project
No assignees
2 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-s3-gw#472
No description provided.