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

[Dynamic Protocol State] State machine handles invalid state transition #4922

Conversation

durkmurder
Copy link
Member

Context

This PR addresses high priority item from #4649 to consolidate logic of handling service events when invalid state transition has been detected.

In this PR all state machine modifications are treated as one atomic state transition. It either succeeds in its entirety or in case of a failure, there is no update to the protocol state. If invalid state transition has been detected we return a copy of the parentState with only the InvalidStateTransitionAttempted set to true.

@AlexHentschel
Copy link
Member

also addresses this comment in the prior PR: #4868 (comment)

@durkmurder
Copy link
Member Author

A possibly different implementation exists in parallel PR, details here

@durkmurder
Copy link
Member Author

Closing if favor of #4931

@durkmurder durkmurder closed this Nov 7, 2023
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