Skip to content
This repository has been archived by the owner on Aug 4, 2022. It is now read-only.

[REEF-1476] Fix race condition in TestTwoSuccessiveTasksOnSameContext #1060

Closed
wants to merge 1 commit into from

Conversation

afchung
Copy link
Contributor

@afchung afchung commented Jun 28, 2016

This addressed the issue by

  • Join the task thread before checking the task status.

JIRA:
REEF-1476

This addressed the issue by
  * Join the task thread before checking the task status.

JIRA:
  [REEF-1476](https://issues.apache.org/jira/browse/REEF-1476)
@tcNickolas
Copy link
Member

LGTM. Will test

Did you find this race condition with some way of testing (so that I should try and repeat it)? I've never seen such test failure

@afchung
Copy link
Contributor Author

afchung commented Jun 29, 2016

Yes, although appearing very rarely, it failed on my machine once.

@asfgit asfgit closed this in 6977d22 Jun 29, 2016
@afchung
Copy link
Contributor Author

afchung commented Jun 29, 2016

@tcNickolas Seems like there was another Thread.Join that I've missed in the same test. I'll open another item and send another PR, but the change will be analogous.

@afchung
Copy link
Contributor Author

afchung commented Jun 29, 2016

Actually, I'll just reopen the JIRA item and send a part-2 PR.

afchung added a commit to afchung/reef that referenced this pull request Jun 29, 2016
This addressed the issue by
  * Join the task thread before checking the task status.

JIRA:
  [REEF-1476](https://issues.apache.org/jira/browse/REEF-1476)

Pull request:
  This closes apache#1060
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
2 participants