-
-
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
ipfs get race conditions #1012
Comments
👍 always good to flush these out. |
if still have the outputs of the data races, it would be useful to post them here to make sure we account for them all, and can discuss them. (sometimes it can be hard to get the same races to appear across platforms) |
The file with the -race output is 2411 lines long and GitHub only supports image file uploads, so I added it to ipfs: http://gateway.ipfs.io/ipfs/Qmagf4SGLwjDUgQ4TEvDGPKJiSmN1DHwGfxwXj3T8bsvac I hope it won't disappear if I disconnect. |
i just pinned it on a server i run. we need cube (our s3 pinner) soon |
@jbenet thanks, it looks like the problems are in unixfs/tar/reader.go |
@chriscool git is lying to you. I've nothing to do with that code (but thats not to say i cant look at it) |
@whyrusleeping hmmmmmmm
|
I must have written that in my sleep, because i seriously have no recollection of writing any of that... |
I just tried again to see if the races are still there and it looks like there are fewer of them.
and I got output like that:
|
Ok, the data race above seems to be one in pb, so I opened an issue there: cheggaaa/pb#40 |
Well the race has been fixed in the last versions of pb, so the good news is that we just have to upgrade to the latest version to fix this race. |
I will left it to someone used to vendoring dependencies, as it looks like I haven't figured out exactly how to do it yet and it 's late now. Thanks in advance! |
I can do some godeps housecleaning, no problem. |
@cryptix that would be great if you could do it, thanks! |
@cryptix did you fix this one (cheggaaa/pb#40) already? |
Hrmpf, I hoped it would be fixed by upgrading to master but I just ran the tests with race like @chriscool did and got this. After looking at it a bit, I guess this could be on our side now, though... |
Yeah, upgrading cheggaaa/pb to master doesn't fix all the races, but it fixes many of them. |
Okay, cool. Thanks for confirming that there are less of them now. :) |
Thanks for upgrading cheggaaa/pb, I had not seen that you did it! |
not sure if this will be reverted by the recent #1323 -- something went wrong. |
I think this is fixed? can anyone confirm? @cryptix @chriscool |
I confirm that it is fixed. To check by yourself you just need to run |
awesome, thanks! |
Some tests in t0090-get.sh have been failing randomly for some time.
And when building ipfs with -race and trying the following (which is part of t0090-get.sh):
one get a lot of debug output and
Found 8 data race(s)
.The text was updated successfully, but these errors were encountered: