Port fixes for maintenance mode to support/v0.38 #1113

Merged
fyrchik merged 4 commits from fyrchik/frostfs-node:maintenance-fixes into support/v0.38 2024-05-02 11:42:11 +00:00

4 commits

Author SHA1 Message Date
15abbe52f0 [#1110] node: Use single handler for new epoch event
All checks were successful
Vulncheck / Vulncheck (pull_request) Successful in 2m15s
DCO action / DCO (pull_request) Successful in 2m11s
Build / Build Components (1.21) (pull_request) Successful in 3m50s
Build / Build Components (1.20) (pull_request) Successful in 4m29s
Tests and linters / Staticcheck (pull_request) Successful in 6m28s
Tests and linters / Lint (pull_request) Successful in 8m21s
Tests and linters / gopls check (pull_request) Successful in 8m18s
Tests and linters / Tests (1.20) (pull_request) Successful in 4m35s
Tests and linters / Tests (1.21) (pull_request) Successful in 4m43s
Tests and linters / Tests with -race (pull_request) Successful in 5m46s
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-05-02 10:31:13 +03:00
e25bddce62 [#1110] node: Log maintenance stop only if it was enabled
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-05-02 10:31:02 +03:00
ef47d0b4f6 [#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-05-02 10:30:55 +03:00
0f3ee99f48 [#1110] node: Fix comment about nodeInfo type
Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
2024-05-02 10:30:46 +03:00