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

Subsystem failure should cause runtime to stop #13

Open
2 tasks
nclack opened this issue Nov 23, 2022 · 0 comments
Open
2 tasks

Subsystem failure should cause runtime to stop #13

nclack opened this issue Nov 23, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@nclack
Copy link
Member

nclack commented Nov 23, 2022

There's a bit of a problem with state management when the storage sub-system fails.

A typical caller acquisition loop probably looks something like:

    while( cpx_get_state(runtime)==DeviceState_Running && ... )

When a write fails, the storage thread will exit, but the runtime fails to monitor that failure and stays in a "Running" state.

  • the subsystem failure should cause the runtime to do a controlled stop and we should be able to reliably query the system state.
  • There's a testing gap around failing devices.

Originally posted by @nclack in https://github.com/calliphlox/cpx/pull/75#discussion_r1029930401

@nclack nclack added the bug Something isn't working label Nov 23, 2022
@aliddell aliddell transferred this issue from another repository Jun 20, 2023
@aliddell aliddell transferred this issue from acquire-project/acquire-video-runtime Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant