Support context cancellation in tree node streaming #569
Labels
No labels
P0
P1
P2
P3
good first issue
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-s3-gw#569
Loading…
Add table
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
Is your feature request related to a problem? Please describe.
It would be nice to support context cancellation during streaming nodes from tree.
here
func (s *VersionsByPrefixStreamImpl) Next(context.Context) (*data.NodeVersion, error) {
and here
func (s *SubTreeStreamImpl) Next() (tree.NodeResponse, error) {
Describe the solution you'd like
Check context here and return error rather than returning up to 1000 buffered values.
Describe alternatives you've considered
No
Additional context
It can help cancel lifecycle cycle in https://git.frostfs.info/TrueCloudLab/frostfs-s3-lifecycler
Done in #571