Race condition between leader-elected
and opensearch-client-created
events.
#473
Labels
bug
Something isn't working
The OpenSearch deployment gets stuck with the following error message:
That blocked only happens if the index already exists, as the code shows.
After doing some investigation on data-hub's CI failure: https://github.com/canonical/datahub-k8s-operator/actions/runs/11261394134/job/31314738969?pr=5#step:13:1786
I've noticed that we may have the following sequence of events happening:
index-requested
event and creates the eventindex-requested
event and notices the index already existsNow, the cluster will be stuck on "failed to create {index-name} index".
It is not possible to validate the flow above as the real cause of this CI failure. Nonetheless, it is a possibility and therefore, we should avoid it.
The text was updated successfully, but these errors were encountered: