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

Address improper configuration when transitioning between child and parent states #88

Open
wants to merge 12 commits into
base: feature/stateMachineActionRace
Choose a base branch
from

Conversation

yassiezar
Copy link
Contributor

@yassiezar yassiezar commented Feb 17, 2023

This is in response to #60 and builds on #87. The main change is adding a guard to prevent the notifyOnStateEntryEnd() method from being called when there's still an inner state to be configured. In addition, I've replaced the mutex locks with an atomic - the idea is that it guarantees mutually-exclusive access to the state variable without having to manually specify a locked region.

I've tested this on our system around 20 times and it consistently starts up as expected, as opposed to before where startup was much more unpredictable. However, more testing on different state configurations will be necessary to prevent regression.

┆Issue is synchronized with this Jira Task by Unito

@yassiezar yassiezar changed the base branch from feature/stateMachineActionRace to noetic-devel February 17, 2023 19:04
@yassiezar yassiezar changed the base branch from noetic-devel to feature/stateMachineActionRace February 17, 2023 19:04
@pabloinigoblasco
Copy link
Collaborator

We accept your proposal. Before we merge the changes into our codebase, I would like to conduct a final validation by testing some of our existing examples.

Thank you for your contribution!

@yassiezar
Copy link
Contributor Author

No problem, let me know if I can help with integration or testing

@yassiezar yassiezar force-pushed the feature/stateMachineActionRace branch from 38c5eec to d63bfa3 Compare April 8, 2023 07:42
@brettpac brettpac closed this Sep 2, 2023
@yassiezar
Copy link
Contributor Author

Hey @brettpac , was the issue this PR tried to resolve fixed elsewhere? It might be a related to the problem faced in #119

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.

3 participants