-
-
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
pubsub sometimes hangs on Windows #4778
Comments
@vmx is this only on windows? And not any other OS? It seems very fishy that this (without touching the CLI) would behave any differently than any other system. |
@whyrusleeping I found looking into this issue as CI was failing a lot (https://ci.ipfs.team/blue/organizations/jenkins/IPFS%2Fjs-ipfs-api/detail/PR-705/4/tests) on this case on Windows. I was then able to reproduce it in a Windows VM easily. Though it seems to be a race condition, I'd say it happens in 60% of the cases. So far I haven't seen this failure on Linux. It also seems that the more items are, the more likely it happens. I was able to reproduce it also with 10 items, but then it passed more often. |
There's already some discussion about it at ipfs-inactive/interface-js-ipfs-core#188. |
@vmx |
@djdv It's a Windows specific issue, hence we disabled the tests there (https://github.com/ipfs/interface-ipfs-core/blob/4536160b71a48a2bd6c8dce304ce70b50b1c04e5/js/src/pubsub.js#L511-L515 and https://github.com/ipfs/interface-ipfs-core/blob/4536160b71a48a2bd6c8dce304ce70b50b1c04e5/js/src/pubsub.js#L586-L590) |
Version information:
go-ipfs version: 0.4.13-
Repo version: 6
System version: amd64/windows
Golang version: go1.9.2
Type: Bug
Description:
pubsub test sometimes hangs when running through js-ipfs-api. Steps to reproduce:
node_modules\interface-ipfs-core\js\src\pubsub.js
with the code belowSometimes not all 100 messages will be received and the test will time out.
The text was updated successfully, but these errors were encountered: