mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Node's get service refactor #1126
Labels
No labels
I1
I2
I3
I4
S0
S1
S2
S3
S4
U0
U1
U2
U3
U4
blocked
bug
config
dependencies
discussion
documentation
enhancement
enhancement
epic
feature
go
good first issue
help wanted
neofs-adm
neofs-cli
neofs-cli
neofs-cli
neofs-ir
neofs-lens
neofs-storage
neofs-storage
performance
question
security
task
test
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
nspcc-dev/neofs-node#1126
Loading…
Add table
Add a link
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?
Originally created by @carpawell on GitHub (Sep 14, 2023).
Is your feature request related to a problem? Please describe.
I'm always frustrated when I need to read and change the get object service in the Storage Node. IMO it has not been refactored for a too long time: some features were added and some hotfixes have been applied so now it always scares me when I need to add/change something in this service.
Describe the solution you'd like
Try to see which parts are in use, and which are outdated, to remove totally unused code. Rework forwarding mechanism (also think it may lead to some new thoughts about our access logic). Make it more clear what requests can spawn (and should they?) another requests (e.g. it is/was OK to make
GETRANGEif the original request isGETRANGEHAS, the same was applied toGETifGETRANGEwas declined). There are also some parasit small private structs and a lot of callback logic in the service (e.g. forwarding is a huge kludge IMO).Describe alternatives you've considered
Keep it as is until some bug fix leads to another bug, or until some dev is not available to understand the service from scratch.
Additional context
#2557 could look better.
@cthulhu-rider commented on GitHub (Sep 14, 2023):
agree with the desire for a refactor, at the same time I would wait for very deep test coverage (i mean https://github.com/nspcc-dev/neofs-testcases) because this is a very sensitive part of the system
it's possible that the current coverage is sufficient, it needs to be revised
@carpawell commented on GitHub (Sep 25, 2023):
Agree. Do we have any issues in the tests repo? Do we have an understanding of the exact coverage that suits us?