Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

[TechDebt] Race condition #1813

@ndeloof

Description

@ndeloof

Description

ContainerState hold a list of discovered/created containers. As we run the convergence process in parallel on multiple containers, we noticed race conditions accessing this centralized status, as the internal list get updated while concurrent access is missing data.

I suggest we cleanup this code by making convergence a dedicated struct, passing required container operations as an interface (so we can write more unit tests). Convergence would then hold the actual container set, and manage concurrent access accordingly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞App is not working correctly.planned 📨tracked in internal backlog

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions