Skip to content

org.elasticsearch.cluster.metadata.MetadataIndexAliasesService#applyAliasActions can become very slow when adding aliases to large data streams #92609

@original-brownbear

Description

@original-brownbear

When adding aliases that include filters to data streams we validate the filter for every index in the data stream. This entails instantiating a temporary index service for every index (at least for every index not on the master node) which in turn means parsing each index's mapping and setting up a mapper instance.
This can take many seconds for larger data streams. It seems we could avoid validating the filter for every index here and just validate for every unique mapping only?

relates #89924 and #77466

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions