Skip to content

Race condition loading initial data from ElasticSearch #2415

@adrianlzt

Description

@adrianlzt

Today we found a race condition with an ElasticSearch starting at the same time of Skydive.

Skydive was able to start the ES client but then failed to get the data from the live index.

The query function does not allow to return an error, so in case of error only an error log is generated.

I'm not sure how this could be handled. Maybe Skydive should refuse to start if it fails to load the data?
In this case, some work would be needed to handle those errors in the Query function and the callers.

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