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

Fix race condition in job update #355

Merged
merged 1 commit into from
Apr 27, 2018
Merged

Fix race condition in job update #355

merged 1 commit into from
Apr 27, 2018

Conversation

vcastellm
Copy link
Member

@vcastellm vcastellm commented Apr 27, 2018

As reported #299

This fixes a race condition with the job update after execution.

In this PR the lock is refactored to an Atomic job put, that reads the job, updates it and performs a CAS operation to update it in the store.

If this update fails, it retryies it until it's updated.

This ensures no race condition between nodes and efectively fixes the reported error.

Fixes #299

As reported #299

This fixes a race condition with the job update after execution.

In this PR the lock is refactored to an Atomic job put, that reads the job, updates it and performs a CAS operation to update it in the store.

If this update fails, it retryies it until it's updated.

This ensures no race condition between nodes and efectively fixes the reported error.
@vcastellm vcastellm mentioned this pull request Apr 27, 2018
@vcastellm vcastellm merged commit 80f2222 into v0.10.0 Apr 27, 2018
@vcastellm vcastellm deleted the fix_299 branch April 27, 2018 21:58
@vaporz
Copy link

vaporz commented May 2, 2018

Thanks!

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