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

Reproducer for control misbehavior #440

Closed
wants to merge 1 commit into from

Conversation

ktf
Copy link
Contributor

@ktf ktf commented Aug 26, 2022

This is a reproducer for my issue in DPL with the interactive control. You can run it with:

./examples/1-1/fairmq-ex-1-1-sampler --control interactive

and it will exhibit the same unexpected behaviour:

[09:37:01][STATE] INITIALIZING TASK ---> READY
[09:37:01][STATE] READY ---> RUNNING
[09:37:01][INFO] Switching toSTOP

[09:37:01][INFO] fair::mq::Device running...
[09:37:01][STATE] RUNNING ---> READY
[09:37:01][INFO] Switching toRESET TASK

[09:37:01][STATE] READY ---> RESETTING TASK
[09:37:01][INFO] Switching toRESET DEVICE

[09:37:01][STATE] No transition from state RESETTING_TASK on transition RESET_DEVICE
[09:37:01][STATE] RESETTING TASK ---> DEVICE READY
[09:37:01][INFO] Switching toEND

[09:37:01][STATE] No transition from state DEVICE_READY on transition END

@ktf
Copy link
Contributor Author

ktf commented Aug 26, 2022

Again I think the issue is the the automatic transitions do not take into account the original state of a given transition.

Comment on lines +31 to +32
ChangeState(transitions.back());
transitions.pop_back();
Copy link
Member

Choose a reason for hiding this comment

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

Most simple fix I can think of:

Suggested change
ChangeState(transitions.back());
transitions.pop_back();
if (ChangeState(transitions.back())) {
transitions.pop_back();
}

@dennisklein
Copy link
Member

We discussed the topic at length in a private mm chat last week, for agreed upon improvements see #441, #442, #443.

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.

2 participants