mirror of
https://github.com/nspcc-dev/neofs-node.git
synced 2026-03-01 04:29:10 +00:00
Refactor node validation in Inner Ring code #1127
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#1127
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 @cthulhu-rider on GitHub (Sep 14, 2023).
currently Inner Ring verifies and updates descriptors of the storage nodes to be set in the NeoFS network map via https://pkg.go.dev/github.com/nspcc-dev/neofs-node/pkg/innerring/processors/netmap#NodeValidator
it's implemented through several independed packages https://github.com/nspcc-dev/neofs-node/tree/master/pkg/innerring/processors/netmap/nodevalidation
there are two disadvantages in such approach:
4c55307421locode,structureandattribute(coming with #2280) work with attributes but stay out of sync, so they must repeat similar checksi propose to refactor this part of code to make it more simple (e.g. gather in one package) and safe. Power of interfaces will allow us to make it easy to understand and test
@roman-khimov commented on GitHub (Sep 14, 2023):
Refs. #2279.
But specifically about changing attributes, this should be removed out of IR scope. Whatever SN sets is either taken or rejected as is.
@carpawell commented on GitHub (Sep 14, 2023):
Do we have an issue for that? I do not think that is as simple as "Refactor node validation". More components should be affected.
@cthulhu-rider commented on GitHub (Sep 14, 2023):
yep, this issue is about refactor only, it doesn't matter will it be resolved before or after mutation drop. But taking #2279 into account, first of all we could split
verifyandupdatestages first to easily dropverifyone later