Skip to content

tests: fix StreamWorker test leading to bad Engine state #502

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

Merged
merged 1 commit into from
Nov 26, 2022

Conversation

thiell
Copy link
Collaborator

@thiell thiell commented Nov 26, 2022

An unconfigured StreamWorker does not have streams to register in the engine, so when registered, it stays until it is explicitly aborted. To make that worse, it is using a 'fanout slot' and if the Engine's fanout is too low, it can lead to the engine run loop exiting prematurely. This is not a case handled very well by the Engine. See #497 for more details about the problem.

In the meantime, we fix the test to exit with a clean engine state.

Fixes #488.

An unconfigured StreamWorker does not have streams to register in the
engine, so when registered, it stays until it is explicitly aborted. To
make that worse, it is using a 'fanout slot' and if the Engine's fanout
is too low, it can lead to the engine run loop exiting prematurely. This
is not a case handled very well by the Engine. See cea-hpc#497 for more details
about the problem.

In the meantime, we fix the test to exit with a clean engine state.

Fixes cea-hpc#488.
@thiell thiell merged commit a869b28 into cea-hpc:master Nov 26, 2022
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.

tests/TaskEventTest: AssertionError: ev_start not called
1 participant