[#569] Support context cancellation in tree node streaming #571

Merged
alexvanin merged 1 commit from nzinkevich/frostfs-s3-gw:cancel_tree_stream into master 2024-12-24 08:05:45 +00:00
Member

Signed-off-by: Nikita Zinkevich n.zinkevich@yadro.com

Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
nzinkevich self-assigned this 2024-12-10 10:29:06 +00:00
nzinkevich added 1 commit 2024-12-10 10:29:07 +00:00
[#569] Support context cancellation in tree node streaming
All checks were successful
/ DCO (pull_request) Successful in 2m32s
/ Vulncheck (pull_request) Successful in 2m41s
/ Builds (pull_request) Successful in 2m8s
/ Lint (pull_request) Successful in 3m10s
/ Tests (pull_request) Successful in 2m10s
423d9ef120
Signed-off-by: Nikita Zinkevich <n.zinkevich@yadro.com>
nzinkevich requested review from alexvanin 2024-12-10 10:29:07 +00:00
nzinkevich requested review from dkirillov 2024-12-10 10:29:07 +00:00
nzinkevich requested review from storage-services-committers 2024-12-10 10:29:18 +00:00
nzinkevich requested review from storage-services-developers 2024-12-10 10:29:20 +00:00
dkirillov reviewed 2024-12-10 14:53:09 +00:00
@ -942,2 +942,4 @@
for {
select {
case <-ctx.Done():
Member

It seems we can rely on inner context cancellation (I mean inside SubTreeStream.Next)

It seems we can rely on inner context cancellation (I mean inside `SubTreeStream.Next`)
dkirillov marked this conversation as resolved
dkirillov reviewed 2024-12-10 14:54:50 +00:00
@ -936,3 +936,3 @@
}
func (s *VersionsByPrefixStreamImpl) Next(context.Context) (*data.NodeVersion, error) {
func (s *VersionsByPrefixStreamImpl) Next(ctx context.Context) (*data.NodeVersion, error) {
Member

It would be nice to test this. It require update SubTreeStreamMemoryImpl a little I suppose, but still.

It would be nice to test this. It require update `SubTreeStreamMemoryImpl` a little I suppose, but still.
dkirillov marked this conversation as resolved
alexvanin added this to the v0.33.0 milestone 2024-12-11 07:39:22 +00:00
nzinkevich force-pushed cancel_tree_stream from 423d9ef120 to d0f1446630 2024-12-11 09:54:49 +00:00 Compare
nzinkevich force-pushed cancel_tree_stream from d0f1446630 to c85ac53de0 2024-12-11 09:54:58 +00:00 Compare
dkirillov approved these changes 2024-12-13 12:00:11 +00:00
Dismissed
nzinkevich requested review from storage-services-committers 2024-12-16 09:26:06 +00:00
nzinkevich requested review from storage-services-developers 2024-12-16 09:26:12 +00:00
nzinkevich force-pushed cancel_tree_stream from c85ac53de0 to 95b3296593 2024-12-16 09:27:05 +00:00 Compare
nzinkevich dismissed dkirillov's review 2024-12-16 09:27:09 +00:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

dkirillov approved these changes 2024-12-16 12:46:30 +00:00
mbiryukova approved these changes 2024-12-20 10:31:27 +00:00
alexvanin approved these changes 2024-12-24 08:04:58 +00:00
alexvanin merged commit d46f1d3bfa into master 2024-12-24 08:05:45 +00:00
alexvanin deleted branch cancel_tree_stream 2024-12-24 08:05:46 +00:00
Sign in to join this conversation.
No milestone
No project
No assignees
4 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#571
No description provided.