Skip to content

[BUG] updateReplicationStrategy should respect settings from Plugins #19433

@HUSTERGS

Description

@HUSTERGS

Describe the bug

When an index is created, the MetadataCreateIndexService will aggregate all the settings from explicit request, index template and additional settings from plugin. As for INDEX_REPLICATION_TYPE_SETTING setting, it will be finally verified and set by updateReplicationStrategy from MetadataCreateIndexService, however, this function doesn't respect the settings from Plugins, which is included in the parameter settingsBuilder, if a plugin provides an explicit setting of replication type, it will eventually be override by this function, which I think is not the expected behavior?

Related component

Plugins

To Reproduce

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

When a plugin provide explicit Replication type setting, it should be respected

Additional Details

Plugins
Please list all plugins currently enabled.

Screenshots
If applicable, add screenshots to help explain your problem.

Host/Environment (please complete the following information):

  • OS: [e.g. iOS]
  • Version [e.g. 22]

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Indexing:ReplicationIssues and PRs related to core replication framework eg segrepPluginsbugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions