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
Flushing database cache causes p2p connections ping timeout #16008
Comments
Have you set a custom dbcache? |
No custom |
The ping timeouts look like they were >10 minutes after the flush. Is there something I'm missing connecting them? |
The ping timeout happens in ~20 minutes after the flush. The following code was introduced in #2784 by @sipa: Lines 44 to 45 in 277abed
Lines 1071 to 1075 in 277abed
Here is additional info from the |
I think the problem is that the P2P threads get starved while verification is in progress (esp. when there are multiple blocks in a row), so they don't get a chance to run (not even respond to pings). This is similar to issues we've had with the GUI startup. |
either the flush can be made incremental or ping/pong (and maybe some others) can be handled out of order. |
The following approach makes |
It seems related to #18538 (comment). |
System:
datadir
resides on microSDblocksdir
resides on HDD (via USB-to-SATA bridge)debug.log:
Could it be related to #2784?
The text was updated successfully, but these errors were encountered: