Add iterator for container listing #33
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 milestone
No project
No assignees
3 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-contract#33
Loading…
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?
Some time ago, iterator for container estimation was added:
03bff785d2
Iterator allows to go through all items wihtout hitting the limit of the stack size. The same is applicable for
List
method, which returns owner's or all available container IDs.Done by @fyrchik in commit.
The method is still alive in the code
Actually, the existing method allows to iterate over container IDs only. Do we see a value in creating a method that would iterate over containers themselves, so that the client would not need to call
getContainer
for each ID?I think doing
getContainer
on client is not that hard (and also could be done in parallel).We would like to keep contract surface small, because supporting/updating contracts and having multi-version nodes coexisting in a single network is much easier.