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

Propagate startup errors from DHT and averager processes #347

Merged
merged 3 commits into from
Aug 9, 2021

Conversation

borzunov
Copy link
Member

@borzunov borzunov commented Aug 3, 2021

Currently, startup failure of DHT and/or averager (e.g. when initial_peers are unreachable) leads to a deadlock in the parent process. The exception message is printed to stdout but the parent process does not stop, and this is not nice for tests and end users.

This PR makes startup errors to be propagated to the parent process.

@borzunov borzunov requested a review from justheuristic August 3, 2021 18:49
@codecov
Copy link

codecov bot commented Aug 3, 2021

Codecov Report

Merging #347 (dc25ff3) into master (ecdc096) will decrease coverage by 0.06%.
The diff coverage is 88.57%.

@@            Coverage Diff             @@
##           master     #347      +/-   ##
==========================================
- Coverage   83.39%   83.33%   -0.07%     
==========================================
  Files          66       66              
  Lines        5973     5987      +14     
==========================================
+ Hits         4981     4989       +8     
- Misses        992      998       +6     
Impacted Files Coverage Δ
hivemind/averaging/averager.py 84.73% <80.95%> (-0.60%) ⬇️
hivemind/dht/__init__.py 91.27% <100.00%> (+1.13%) ⬆️
hivemind/dht/node.py 92.06% <0.00%> (-1.21%) ⬇️
hivemind/averaging/matchmaking.py 83.48% <0.00%> (+0.30%) ⬆️

@borzunov borzunov requested a review from mryab August 3, 2021 18:59
@borzunov borzunov force-pushed the ready-is-mpfuture branch 3 times, most recently from f4b1e54 to ded9905 Compare August 3, 2021 19:11
@borzunov borzunov force-pushed the ready-is-mpfuture branch from ded9905 to 51764f6 Compare August 3, 2021 19:16
@borzunov borzunov force-pushed the ready-is-mpfuture branch from 1f02351 to dc25ff3 Compare August 3, 2021 21:01
@borzunov borzunov merged commit d893a0a into master Aug 9, 2021
@borzunov borzunov deleted the ready-is-mpfuture branch August 9, 2021 13:49
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.

3 participants