Skip to content

Fix SIGHUP - #4113

Open
End-rey wants to merge 3 commits into
masterfrom
fix-sighup
Open

Fix SIGHUP#4113
End-rey wants to merge 3 commits into
masterfrom
fix-sighup

Conversation

@End-rey

@End-rey End-rey commented Jul 31, 2026

Copy link
Copy Markdown
Contributor

Noticed some issues when adding a new configuration to gRPC.

End-rey added 3 commits July 31, 2026 18:41
Build replacement gRPC servers and bind newly added endpoints before stopping
existing servers. This keeps the current Public API available when the new TLS
configuration is invalid or a new endpoint is occupied. Track the configuration
snapshot associated with running servers. Update it only after a successful
reload, so a failed rebind is retried on the next SIGHUP instead of reusing a
stopped server.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Validate the newly read configuration before applying it. Invalid configuration
now aborts reload before services are modified. Notify systemd that the node is
ready after both successful and failed reload attempts, preventing a unit from
remaining in the reloading state after an error.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
Return attribute parsing errors to the configuration reloader instead of
terminating the process. Restore the previous node attributes when the updated
attributes cannot be parsed.

Signed-off-by: Andrey Butusov <andrey@nspcc.io>
@codecov

codecov Bot commented Jul 31, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 0% with 106 lines in your changes missing coverage. Please review.
✅ Project coverage is 27.18%. Comparing base (9e592e2) to head (2b1cb44).

Files with missing lines Patch % Lines
cmd/neofs-node/grpc.go 0.00% 60 Missing ⚠️
cmd/neofs-node/config.go 0.00% 35 Missing ⚠️
cmd/neofs-node/attributes.go 0.00% 7 Missing ⚠️
cmd/neofs-node/netmap.go 0.00% 4 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4113      +/-   ##
==========================================
- Coverage   27.20%   27.18%   -0.03%     
==========================================
  Files         676      676              
  Lines       46227    46273      +46     
==========================================
+ Hits        12576    12577       +1     
- Misses      32437    32483      +46     
+ Partials     1214     1213       -1     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@roman-khimov roman-khimov left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Create an issue for neofs-testcases to test these scenarios.

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.

2 participants