canonical / canonical/fpgad

daemon: there is no way to assert that daemons are up and running before trying to use a softener

Open
#189 0 comments 0 reactions 1 assignee Claimed by @Sinan-Karakaya View on GitHub
Dominant language
Rust
Stars
11
Forks
0
PR merge metrics
No merged PRs in 30d

Description

There is a race condition in fpgad whereby the first call to fpgad triggers the startup of dfx-mgrd, but if the first call is a dfx-mgr softener method, it's likely that dfx-mgrd will not be up in time. We should wait for comeup or otherwise report the state to the softener from the softeners thread such that we can make sure we are waiting for dfx-mgrd to start the first time, or catch the error and retry once or something.

One possible solution is to simply wait until softeners_thread.rs returns some state before activating the dbus interface for FPGAd, but this may result in timeouts and failures to start fpgad, so we should be careful.
An alternative solution is to have a way to check the softener's thread's state.

old name: tests: first test run is always dfx-mgrd dependant and it is not online on first call.

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.