When create an alias and then query for existence of that alias using GET /*/_alias/<alias_name>
I'm sometimes getting 404s even though the alias definitely exists. Then what ends up happening is my app mistakenly recreates the alias, which now points to two indexes, and then I can't index new documents.
- Is it expected that
/*/_alias/<alias_name>
can sometimes return a 404 even though the alias exists? e.g., with freshly created aliases? - If that's the case, how can I wait until the alias is fully ready before proceeding?
Thanks!