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

Fixing race condition in channel test #3115

Merged
merged 1 commit into from Jan 22, 2018
Merged

Fixing race condition in channel test #3115

merged 1 commit into from Jan 22, 2018

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Jan 19, 2018

Proposed Changes

  • fix a race in test channel_2916, the counter of pending tasks was relying on another thread being executed after checking the value

Any background context you want to provide?

@hkaiser hkaiser added this to the 1.1.0 milestone Jan 19, 2018
@hkaiser hkaiser force-pushed the fixing_post_3104 branch 2 times, most recently from 9584dd5 to 7179bea Compare January 20, 2018 02:11
… execution)

- this was exposed by the recent patch fixing direct execution (#3104)
- flyby: don't run channel_2916 as a distributed test
@@ -66,7 +66,7 @@ set(async_callback_non_deduced_context_PARAMETERS THREADS_PER_LOCALITY 4)
set(broadcast_unwrap_future_2885_PARAMETERS LOCALITIES 2 THREADS_PER_LOCALITY 4)
set(broadcast_wait_for_2822_PARAMETERS LOCALITIES 2 THREADS_PER_LOCALITY 4)
set(channel_2916_FLAGS DEPENDENCIES iostreams_component)
set(channel_2916_PARAMETERS LOCALITIES 2 THREADS_PER_LOCALITY 4)
set(channel_2916_PARAMETERS THREADS_PER_LOCALITY 4)
Copy link
Member

Choose a reason for hiding this comment

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

why did you remove distributed testing here?

Copy link
Member Author

Choose a reason for hiding this comment

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

Because the test itself does not do any distributed work.

Copy link
Member

Choose a reason for hiding this comment

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

Ah, yes sure...

Copy link
Member

@sithhell sithhell left a comment

Choose a reason for hiding this comment

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

LGTM

@sithhell sithhell merged commit 17d4074 into master Jan 22, 2018
@sithhell sithhell deleted the fixing_post_3104 branch January 22, 2018 10:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants