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] Indices deletion in leader cluster do not get replicated in follower cluster #1434

Open
vivekkumar1008 opened this issue Aug 29, 2024 · 5 comments
Labels
enhancement New feature or request

Comments

@vivekkumar1008
Copy link

vivekkumar1008 commented Aug 29, 2024

What is the bug?
Deleting an index on the cluster leader does not get replicated in cluster follower.

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

  1. Create an index on the cluster leader and add some documents
  2. Enable the cluster replication and wait until the index gets replicated to the follower.
  3. Delete index on the cluster leader
  4. Wait and check on cluster follower nothing gets replicated the same index still exist

What is the expected behavior?
The deleted index on cluster leader should get delete in cluster follower.

What is your host/environment?

  • Distributor ID: Ubuntu
  • Description: Ubuntu 20.04.6 LTS
  • Release: 20.04
  • Codename: focal

Do you have any screenshots?
N/A

Do you have any additional context?
Using Opensearch:1.3.9

@vivekkumar1008 vivekkumar1008 added bug Something isn't working untriaged labels Aug 29, 2024
@dblock dblock removed the untriaged label Sep 16, 2024
@dblock
Copy link
Member

dblock commented Sep 16, 2024

[Catch All Triage - 1, 2, 3, 4, 5]

@nisgoel-amazon
Copy link
Contributor

@vivekkumar1008 Thanks for creating the issue.
This is expected behavior, this is intentional to stop replication on follower cluster when we delete index on leader index. We did this behaviour by keeping few things in mind like if some one wants to do cross cluster search on the follower cluster.

Cleanup of follower cluster indices needs to be done separately.

@bharath-techie
Copy link

@nisgoel-amazon should we look into the path of giving this as an option ?

@nisgoel-amazon
Copy link
Contributor

We can take it as a feature request and happy to have contributions.
But this is not an issue, so we can close this one after creating feature request.

@vivekkumar1008
Copy link
Author

Hey thank you so much to give insight info and also taking this request as future feature development.

@monusingh-1 monusingh-1 added enhancement New feature or request and removed bug Something isn't working labels Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: 🆕 New
Development

No branches or pull requests

5 participants