-
Notifications
You must be signed in to change notification settings - Fork 925
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(share/discovery): timeout FindPeers operation #2263
Conversation
@walldiss, pls test to reconfirm the fix works |
I have run node with this PR and never seen stuck discovery since then |
Codecov Report
@@ Coverage Diff @@
## main #2263 +/- ##
=======================================
Coverage 50.44% 50.44%
=======================================
Files 150 150
Lines 9318 9294 -24
=======================================
- Hits 4700 4688 -12
+ Misses 4217 4204 -13
- Partials 401 402 +1
|
We discussed in sync that we don't want to merge the fix, we are not sure it is fixing anything, so we removed the buffer. We can continue testing to see if the discovery still gets stuck |
…peration (#2263) Closes #2258 Two cases were possible: * Sometimes, the discovery is not triggered, and memorizing triggers might help * It's an unconfirmed theory, and we are still determining if it fixes anything yet. * We considered a case with @walldiss, but it should not happen. * FindPeers can get stuck sometimes for an indefinite time and so forth stopping the whole discovery. We should stop and restart it.
Closes #2263 Co-authored-by: Hlib Kanunnikov <hlibwondertan@gmail.com>
Closes #2258
FindPeers can get stuck sometimes for an indefinite time and so forth, stopping the whole discovery. We should stop and restart it.