-
Notifications
You must be signed in to change notification settings - Fork 38
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
node: support reloading node attributes with SIGHUP #3005
node: support reloading node attributes with SIGHUP #3005
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3005 +/- ##
==========================================
- Coverage 22.85% 22.85% -0.01%
==========================================
Files 791 791
Lines 58603 58684 +81
==========================================
+ Hits 13395 13411 +16
- Misses 44312 44376 +64
- Partials 896 897 +1 ☔ View full report in Codecov by Sentry. 🚨 Try these New Features:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- You can compare old/new and avoid updates if nothing changed.
- You're likely to have concurrency problems here when updating
c
. - Not sure what
updateLocalState
gives us, we want to force node netmap update mostly (send an appropriate tx) and it works the other way around.
b323897
to
59a00ed
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe an atomic pointer would be easier to handle here, but locks can be used too.
59a00ed
to
7a367b0
Compare
7a367b0
to
1a73e73
Compare
Incorrect expression to check for reconnection. Before that, it worked the other way around, now is fixed. Signed-off-by: Andrey Butusov <[email protected]>
52de9be
to
47149c2
Compare
@cthulhu-rider Can you help me please.
This one maybe after this commit, don't return error that public key is missing. neofs-node/pkg/core/object/fmt.go Line 185 in f1b6982
May be after this commit.
I think here there are some differences that break the test.
This commit make |
@End-rey bout the tests:
|
47149c2
to
21d37b7
Compare
@cthulhu-rider I fixed everything that needed to be fixed. And what are we going to do with the 3rd point? Wait for the problem to close in the SDK? |
yeah but in the background, there is nothing to do here for now https://github.com/nspcc-dev/neofs-node/actions/runs/11913864433/job/33200509043?pr=3005 bothers me more |
What's up with tests here? |
Well, the node is broken with the new SDK. We either fix something or revert to the old patch here that used api-go (pushing SDK update into a separate PR). I suggest the latter since I have no idea how long will it take to fix SDKish problems. |
48aa919
to
2815c4f
Compare
There was incorrect behavior in the test that was fixed. Signed-off-by: Andrey Butusov <[email protected]>
Signed-off-by: Andrey Butusov <[email protected]>
Add a new function `cfg.reloadNodeAttributes` that updates the list of node attributes. Add RWMutex for `cfg.cfgNodeInfo.localInfo`. Add docs. Closes #1870. Signed-off-by: Andrey Butusov <[email protected]>
2815c4f
to
d430daa
Compare
Closes #1870.
Also fix bug from #2998, that incorrectly checked when to reconnect.