Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MetadataIndexAliasesService does not respect timeout specified in request when submitting index-aliases tasks #120389

Open
PeteGillinElastic opened this issue Jan 17, 2025 · 1 comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team

Comments

@PeteGillinElastic
Copy link
Member

PeteGillinElastic commented Jan 17, 2025

In MetadataIndexAliasesService we submit tasks to a queue to apply the metadata changes to create/delete aliases. There is a timeout in the request (IndicesAliasesClusterStateUpdateRequest.masterNodeTimeout()) but it is not used here, the task has a null i.e. infinite timeout. As a consequence, if this originated from a REST request, the user will eventually see an error when something times out in the serving infrastructure, but this task can stay pending indefinitely. (We have seen a case where a bug meant that those tasks were not getting processed, and we had a large number of tasks which had been pending for several days.) There is a TODO in the code for this.

@PeteGillinElastic PeteGillinElastic added the :Data Management/Indices APIs APIs to create and manage indices and templates label Jan 17, 2025
@elasticsearchmachine elasticsearchmachine added the Team:Data Management Meta label for data/management team label Jan 17, 2025
@elasticsearchmachine
Copy link
Collaborator

Pinging @elastic/es-data-management (Team:Data Management)

@mattc58 mattc58 added the >bug label Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>bug :Data Management/Indices APIs APIs to create and manage indices and templates Team:Data Management Meta label for data/management team
Projects
None yet
Development

No branches or pull requests

3 participants