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

[Upgrade Assistant] Prevent users from reindexing follower indices. #215192

Open
SoniaSanzV opened this issue Mar 19, 2025 · 1 comment
Open

[Upgrade Assistant] Prevent users from reindexing follower indices. #215192

SoniaSanzV opened this issue Mar 19, 2025 · 1 comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Upgrade Assistant Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more

Comments

@SoniaSanzV
Copy link
Contributor

SoniaSanzV commented Mar 19, 2025

Context

In Upgrade Assistant, we are allowing follower indices to be reindexed and it always fails [read more about the bug].

From the issue investigation in ES side:

I think that this behavior has always existed since the CCR feature was implemented. At least I reproduces the same exact errors with CCR follower indices created on 6.8 and upgraded to 7.17 and then 8.18.
Because they are supposed to replicate an index from another cluster, some operations are forbidden and cannot be executed against CCR follower indices. This is the case of direct indexing operations (like Reindexing does) and alias changes.
In that case, the bug lies in the Upgrade Assistant (UA) that should probably not offer the option to reindex follower indices. Or if it does, it should be "Unfollow & Reindex" to allow converting the index to a regular index and then reindex the docs. Converting would mean to pause the replication, close the index, unfollow and reopen the index to allow reindexing. The replication could not be reenabled afterwards, so I'm not sure of the benefits compared to the "Mark as Read-only" option.
Note that "Mark as read-only" option does what it means, but replication is not stopped either but only silently fails.

Solution

Since the option "Unfollow & Reindex" requires more work from Es and Kibana side, as a short term solution we can allow follower indices only to be marked as read-only and display some kind of warning that they should stop following the leader index.

Only for illustrative purposes of what the solution might look like. They are not mocks:

Image

Image

@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 19, 2025
@SoniaSanzV SoniaSanzV added bug Fixes for quality problems that affect the customer experience and removed needs-team Issues missing a team label labels Mar 19, 2025
@botelastic botelastic bot added the needs-team Issues missing a team label label Mar 19, 2025
@SoniaSanzV SoniaSanzV added Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more Feature:Upgrade Assistant and removed needs-team Issues missing a team label labels Mar 19, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-management (Team:Kibana Management)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Fixes for quality problems that affect the customer experience Feature:Upgrade Assistant Team:Kibana Management Dev Tools, Index Management, Upgrade Assistant, ILM, Ingest Node Pipelines, and more
Projects
None yet
Development

No branches or pull requests

2 participants