Skip to content

If D-Bus goes down while stratisd is operating warn messages will flood the log #3920

@mulkieran

Description

@mulkieran

The problem is right here: https://github.com/stratis-storage/stratisd/blob/master/src/dbus_api/connection.rs#L77 . The timing of the whole loop is controlled by the wait time on the D-Bus, which is 1/10 of a second. The timing of the loop should probably be decoupled from the wait time on the D-Bus and the frequency with which stratisd checks for termination should be decoupled from the frequency with which it checks the D-Bus.

There is no obvious library based solution for this, as with the retry crate.

Basically, our goal should be to have a principled, utterly regular time to check for the down signal, and to back off checking the D-Bus if there is an error. This is especially important if the error returns immediately, i.e., does not wait 1/10 of a second.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions