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

node: fix panic in error cases, fix #2970 #3003

Merged
merged 2 commits into from
Nov 7, 2024

Conversation

roman-khimov
Copy link
Member

internalErr has some buffer to accept multiple errors, but it only processes one of them, so if we have some cascading failures with multiple components reporting an error some of them will end up panicking because of closed channed. It's not very critical since the node is to die anyway, but it's nothing good either.

This particular case shouldn't really happen after #2996, but leaving this channel open is better than panic in case some other events lead to multiple sends to it.

internalErr has some buffer to accept multiple errors, but it only processes
one of them, so if we have some cascading failures with multiple components
reporting an error some of them will end up panicking because of closed
channed. It's not very critical since the node is to die anyway, but it's
nothing good either.

This particular case shouldn't really happen after #2996, but leaving this
channel open is better than panic in case some other events lead to multiple
sends to it.

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

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 23.07%. Comparing base (eccab58) to head (d5de082).
Report is 8 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #3003   +/-   ##
=======================================
  Coverage   23.07%   23.07%           
=======================================
  Files         789      789           
  Lines       58687    58686    -1     
=======================================
  Hits        13542    13542           
+ Misses      44263    44262    -1     
  Partials      882      882           

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

@@ -36,7 +36,7 @@ attribute, which is used for container domain name in NNS contracts (#2954)
- Use org-wide linter (#2943)
- Timestamps are no longer produced in logs if not running with TTY (#2964)
- In inner ring config, default ports for TCP addresses are used if they are missing (#2969)
- Metabase is refilled if an object exists in write-cache but is missing in metabase (#2977)
- Metabase is refilled if an object exists in write-cache but is missing in metabase (#2977)
Copy link
Member

Choose a reason for hiding this comment

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

hm, this is already like an additional CI check

@carpawell carpawell merged commit ecaffa0 into master Nov 7, 2024
22 checks passed
@carpawell carpawell deleted the fix-listen-with-error-panic branch November 7, 2024 16:45
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