-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
TestBootstrap fails occasionally #2745
Comments
i hate this one. Its the 'misdial' issue, it affects a few different tests. |
My sanity tests caught it: https://travis-ci.org/ipfs/go-ipfs/jobs/136932615#L3812 |
I am able to replicate failure in less than a minute: cd routing/dht
while time go test -run TestBootstrap; do; done Looks like failure about one in five. And sundelly now it goes without a failure for a long time, yeah but it is repeatable. |
https://travis-ci.org/ipfs/go-ipfs/jobs/137017648 heres another one |
It think I figured out what is happening, the SO_REUSE_PORT flag on a socket makes it possible for socket I am running now tests on my server with |
I found it pretty interesting that it is a problem but it makes sense, it is birthday paradox with calendar not of 365 days but 2^16. As it turns out for 10% failure rate binding 140 addresses is enough: https://www.wolframalpha.com/input/?i=y%3D+1+-+(((2%5E16)+nPr+n+)%2F(2%5E16)%5En)++from+0+to+200 I still will wait few hours to confirm that issues is gone. |
http://ci.ipfs.team:8111/viewLog.html?buildId=2045&buildTypeId=GoIpfs_CiTests&tab=buildLog#_focus=4136&state=4136
More here: #188
The text was updated successfully, but these errors were encountered: