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 #707 change sem flush to solve race condition #721

Conversation

zanzaben
Copy link
Contributor

@zanzaben zanzaben commented Dec 30, 2020

Describe the contribution
fixes #707
Removed Sem flush and changed it to sem give to prevent a rare race condition.
Change the port numbers to be different from network test for when test are run in parallel.

Testing performed
Ran the unit tests in parallel

Expected behavior changes
Test shouldn't lock or fail

System(s) tested on
Ubuntu 20.04

Contributor Info - All information REQUIRED for consideration of pull request
Alex Campbell GSFC

@zanzaben zanzaben added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Dec 30, 2020
@jphickey
Copy link
Contributor

So far so good ... I pulled this into my OSAL baseline and ran the full test cycle several times and haven't seen it get stuck or fail yet. (Would happen at least 1 in 3 runs previously).

@skliper
Copy link
Contributor

skliper commented Jan 4, 2021

Update comment message to follow preferred format:

Fix #XXX, Short Description

Long Description

Right now it looks like:

Fix #XXX, 1st half of the changes

2nd halve of the changes

change sem flush to solve race condition
change port numbers to be different from network test
@astrogeco astrogeco changed the base branch from main to integration-candidate January 6, 2021 14:21
@astrogeco astrogeco removed the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Jan 6, 2021
@astrogeco astrogeco merged commit 13461bd into nasa:integration-candidate Jan 6, 2021
astrogeco added a commit to nasa/cFS that referenced this pull request Jan 6, 2021
@skliper skliper added this to the 6.0.0 milestone Sep 24, 2021
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.

Race condition in "select" test
4 participants