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

[BUG] Replication plugin doesn't apply multi-field mapping update at the follower #622

Closed
saikaranam-amazon opened this issue Nov 2, 2022 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@saikaranam-amazon
Copy link
Member

saikaranam-amazon commented Nov 2, 2022

What is the bug?
Replication plugin doesn't apply mapping updates at the follower index for the multi-fields mapping update on the leader index.

How can one reproduce the bug?
Steps to reproduce the behavior:

  1. Have dummy mapping defined for the leader index.
  2. Start replication on this index at the follower.
  3. update the mapping for the single field at the leader index with additional fields for multi-field update
PUT /<index>/_mapping
{
 "properties": {
   "field1": {
     "type": "text",
      "fields" : {
         "field2" : {
             "type" : "text",
             "analyzer" : "standard"
           },
           "field3" : {
             "type" : "text",
             "analyzer" : "standard"
           }
       }
    }
  }
}

  1. Index more docs at the leader index.
  2. Notice that the docs are replayed at the follower but mapping update is not performed on the follower

What is the expected behavior?
Even for multi-fields mapping update should be performed.

@saikaranam-amazon saikaranam-amazon added bug Something isn't working untriaged labels Nov 2, 2022
@saikaranam-amazon saikaranam-amazon changed the title [BUG] [BUG] Replication plugin fails to apply multi-field mapping update at the follower Nov 2, 2022
@saikaranam-amazon saikaranam-amazon changed the title [BUG] Replication plugin fails to apply multi-field mapping update at the follower [BUG] Replication plugin doesn't apply multi-field mapping update at the follower Nov 2, 2022
@saikaranam-amazon saikaranam-amazon added v2.5.0 'Issues and PRs related to version v2.5.0' and removed untriaged labels Nov 2, 2022
@sricharanvuppu sricharanvuppu linked a pull request Dec 29, 2022 that will close this issue
5 tasks
@sricharanvuppu sricharanvuppu removed a link to a pull request Dec 29, 2022
5 tasks
@sricharanvuppu sricharanvuppu self-assigned this Feb 3, 2023
@ankitkala ankitkala removed the v2.5.0 'Issues and PRs related to version v2.5.0' label Feb 20, 2023
@sricharanvuppu
Copy link
Member

backported to all branches, closing the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants