Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Netmap with nodev2 #3088

Draft
wants to merge 8 commits into
base: master
Choose a base branch
from
Draft

Netmap with nodev2 #3088

wants to merge 8 commits into from

Conversation

roman-khimov
Copy link
Member

Fixes #3047, fixes #1914. The logic is rather simple:

  • we update to 0.45.0, SNs push data to both lists
  • the switch is turned on and we're using new lists now
  • old methods and data to be removed afterwards

Related to nspcc-dev/neofs-contract#461, once it's there the default will be to use v2 for new installations.

Useless, NodeInfo can be passed directly and InvokePrmOptional is never used.

Signed-off-by: Roman Khimov <[email protected]>
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

Attention: Patch coverage is 0.38610% with 258 lines in your changes missing coverage. Please review.

Project coverage is 22.25%. Comparing base (b9fbe92) to head (bbc4b3a).
Report is 2 commits behind head on master.

Files with missing lines Patch % Lines
pkg/morph/client/netmap/netmap.go 0.00% 107 Missing ⚠️
cmd/neofs-node/netmap.go 0.00% 38 Missing ⚠️
...-adm/internal/modules/fschain/netmap_candidates.go 0.00% 28 Missing ⚠️
pkg/morph/client/netmap/add_peer.go 0.00% 23 Missing ⚠️
cmd/neofs-node/config.go 0.00% 21 Missing ⚠️
pkg/morph/client/netmap/client.go 0.00% 8 Missing ⚠️
...d/neofs-node/reputation/intermediate/calculator.go 0.00% 6 Missing ⚠️
pkg/services/object/acl/v2/classifier.go 0.00% 6 Missing ⚠️
pkg/services/object/acl/v2/service.go 0.00% 5 Missing ⚠️
pkg/morph/client/netmap/update_state.go 0.00% 4 Missing ⚠️
... and 9 more
Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3088   +/-   ##
=======================================
  Coverage   22.24%   22.25%           
=======================================
  Files         771      768    -3     
  Lines       58950    58915   -35     
=======================================
- Hits        13113    13111    -2     
+ Misses      44951    44918   -33     
  Partials      886      886           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

But only if not converted to v2 node yet. We're keeping both for old networks
till they make a switch, then only v2 nodes are used.

Signed-off-by: Roman Khimov <[email protected]>
It's not adding any value.

Signed-off-by: Roman Khimov <[email protected]>
This logic is present since 2bd827a, but
sending tx every epoch is simpler and more reliable. The overhead is
negligible.

Signed-off-by: Roman Khimov <[email protected]>
Most of the time we don't need a complete AddPeer/AddNode. Fixes #1914.

Signed-off-by: Roman Khimov <[email protected]>
It's not provided for NodeV2, most of the time we need the latest and greatest,
when we don't usually epoch is known, so this interface is not really needed.

Signed-off-by: Roman Khimov <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use new netmap method after contract update Send UpdateState instead of AddPeer as node's heartbeat
1 participant