Skip to content
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

race fixes #566

Merged
merged 1 commit into from
Jan 15, 2015
Merged

race fixes #566

merged 1 commit into from
Jan 15, 2015

Conversation

jbenet
Copy link
Member

@jbenet jbenet commented Jan 15, 2015

This is a PR to get rid of all the nasty race problems.
Now we have tests running all the time for 'em, it'll
be way easier to do it incrementally (thanks @briantigerchow!)

Let's get this party started:

@jbenet jbenet added the status/in-progress In progress label Jan 15, 2015
All the datastores used by pinners and so on should be mutex
wrapped. One issue with changing all of them from
ds.Datastore -> ds.ThreadSafeDatastore is that we wrap the
incoming ds.ThreadSafeDatastore with other datastores, which
do not implement the interface. Re-wrapping again causes
double locking. (which may be ok..., but...) any ideas?
@btc
Copy link
Contributor

btc commented Jan 15, 2015

Fails race detector for unrelated reason LGTM RFM

@jbenet
Copy link
Member Author

jbenet commented Jan 15, 2015

@briantigerchow i was thinking we can dump a lot of the fixes here over the next day or so. do you prefer to merge right away? (i guess higher SNR). We can also keep this PR open and merge manually into master.

@btc
Copy link
Contributor

btc commented Jan 15, 2015

@briantigerchow i was thinking we can dump a lot of the fixes here over the next day or so. do you prefer to merge right away? (i guess higher SNR). We can also keep this PR open and merge manually into master.

Would be nice to get Jenkins to quiet down. Personally, I'm happy to deal with the bit of extra work if it means we can get tests green again.

I'm also okay tacking these sorts of fixes onto bigger PRs alternatively.

btc pushed a commit that referenced this pull request Jan 15, 2015
@btc btc merged commit 47701aa into master Jan 15, 2015
@btc btc removed the status/in-progress In progress label Jan 15, 2015
@jbenet jbenet deleted the races branch January 15, 2015 00:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants