Small fixes for netmap status transitions #1110

Merged
fyrchik merged 4 commits from fyrchik/frostfs-node:fix-status into master 2024-04-27 13:44:12 +00:00

4 Commits (master)

Author SHA1 Message Date
Evgenii Stratonikov 52bebe9452 [#1110] node: Use single handler for new epoch event
DCO action / DCO (pull_request) Successful in 5m7s Details
Build / Build Components (1.21) (pull_request) Successful in 6m54s Details
Build / Build Components (1.22) (pull_request) Successful in 6m53s Details
Tests and linters / Staticcheck (pull_request) Successful in 7m45s Details
Tests and linters / Lint (pull_request) Successful in 8m29s Details
Vulncheck / Vulncheck (pull_request) Successful in 8m4s Details
Tests and linters / gopls check (pull_request) Successful in 8m43s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 11m48s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 11m54s Details
Tests and linters / Tests with -race (pull_request) Successful in 12m48s Details
Bootstrap logic depends on the netmap status, which in turn depends on
the node info. Updating them in a single thread makes things more
predictable.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-04-27 15:17:45 +03:00
Evgenii Stratonikov 4b514f5ba0 [#1110] node: Log maintenance stop only if it was enabled
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-04-27 15:17:45 +03:00
Evgenii Stratonikov c8e2ca2ab4 [#1110] node: Rename handleLocalNodeInfo()
It is used in "handler" only once, what we really do is set the
variable. And we have another "local" node info in `cfgNodeInfo`, this
one is not really local (node info), more like (local node) info, so use
setContractNodeInfo to distinguish it from the local view on the node
info.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-04-27 15:17:45 +03:00
Evgenii Stratonikov 3b9d12b11c [#1110] node: Fix comment about nodeInfo type
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-04-27 15:17:45 +03:00