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

Fix: Restarting the NDP Proxy sometimes crashed #538

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

hoh
Copy link
Member

@hoh hoh commented Feb 13, 2024

This is likely due because it was restarted too quickly.

Solution: Wrap the error in a custom class and retry after 5 seconds.

This is still a work in progress as a better approach should limit the frequency of restarts instead, for example using an event or queue.

Copy link

codecov bot commented Mar 6, 2024

Codecov Report

Attention: Patch coverage is 20.00000% with 16 lines in your changes are missing coverage. Please review.

Project coverage is 35.20%. Comparing base (0b93f6a) to head (71103f6).

Files Patch % Lines
src/aleph/vm/network/ndp_proxy.py 20.00% 16 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #538      +/-   ##
==========================================
- Coverage   35.25%   35.20%   -0.05%     
==========================================
  Files          53       53              
  Lines        4862     4880      +18     
  Branches      577      580       +3     
==========================================
+ Hits         1714     1718       +4     
- Misses       3127     3141      +14     
  Partials       21       21              

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

This is likely due because it was restarted too quickly.

Solution: Wrap the error in a custom class and retry after 5 seconds.

This is still a work in progress as a better approach should limit the frequency of restarts instead, for example using an event or queue.
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.

1 participant