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

Use local copies in Fetcher._fetchable_partitions to avoid threading issues #1400

Merged
merged 1 commit into from
Mar 8, 2018

Conversation

dpkp
Copy link
Owner

@dpkp dpkp commented Mar 1, 2018

This PR fixes issue #1399 . The underlying problem was that the new heartbeat thread could mutate the instance variables being checked in _fetchable_partitions . To address that we can use local copies and rely on variable assignment to be threadsafe.

@dpkp dpkp merged commit a6130d2 into master Mar 8, 2018
@dpkp dpkp deleted the issue_1399 branch March 8, 2018 16:30
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.

1 participant