Skip to content

[5.x] Fix alias creation in update command - #1458

Open
Jade-GG wants to merge 2 commits into
masterfrom
bugfix/alias-creation
Open

Jade-GG wants to merge 2 commits into
masterfrom
bugfix/alias-creation

Conversation

@Jade-GG

@Jade-GG Jade-GG commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

ref: BORDEX-1516

This was an edge case in this command. Because it gets run very often and it's faster, the UpdateIndexCommand usually wins and runs first. If it gets to an index that doesn't exist yet, it will try to create it. This should be an alias (for the zero downtime index switching thing), but instead it just ends up creating an index under this name, which makes it immutable and thus the indexer breaks.

The simplest fix here is to just skip this command until the index actually exists.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant