Race condition loading initial data from ElasticSearch
adrianlzt opened this issue · 0 comments
adrianlzt commented
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.