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

Slxu extend operation future and fix a race condition #419

Merged
merged 3 commits into from
Feb 22, 2014

Conversation

slxu
Copy link
Contributor

@slxu slxu commented Feb 21, 2014

No description provided.

Add pre-notify listeners to OperationFuture. These listeners get
executed after the operation is done and before waiting threads
getting woke up. This is to solve existing race conditions. For
example, in DatasetMetadataUpdater, the metada gets updated after a
qurey is executed by getting executed in a QueryFuture listener. But
if any thread is syncing on the same QueryFuture, the thread may see
  the query is finished but the metadata is still not updated. Meet
  this race condition in a run of systemtest.JsonQuerySubmitTest
@dhalperi
Copy link
Member

Nice catch! Interesting fix.

dhalperi added a commit that referenced this pull request Feb 22, 2014
…nd-fix-a-race-condition

Slxu extend operation future and fix a race condition
@dhalperi dhalperi merged commit a92a235 into master Feb 22, 2014
@dhalperi dhalperi deleted the slxu-extend-OperationFuture-and-fix-a-race-condition branch February 22, 2014 00:19
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.

None yet

2 participants