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

threads: temporary concurrency disabling #119

Merged
merged 1 commit into from
Nov 22, 2019

Conversation

jsign
Copy link
Contributor

@jsign jsign commented Nov 22, 2019

This PR disables most concurrency at the peer level. It attempts to achieve safety regarding data consistency.

All the editions have the same comments so to come back again to fix the edited points, which most probably will be soon.

In short, many go statements were removed. And at the service.go layer, it leverages threadservice pullLock lock to serialize all threads interactions (quite extreme since is global lock per threadservice (which already existed for other thing, but is just temporal).

After merging, I'll create a new repo with the underlying app that uncovered some of these things... so to keep it as a reference to be sure we solved this problem correctly.

@jsign jsign marked this pull request as ready for review November 22, 2019 00:45
Copy link
Member

@sanderpick sanderpick left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🏆

@jsign jsign merged commit 96babee into textileio:master Nov 22, 2019
@jsign jsign deleted the disableconcurrency branch November 22, 2019 12:21
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