Skip to content

Conversation

@JVerwolf
Copy link
Contributor

@JVerwolf JVerwolf commented Feb 10, 2025

Reverts #121119 with a fix for #120168, which was causing the system index migration service to fail when security was enabled.

This PR removes a potential cause of data loss when migrating system indices. It does this by changing the way we set a "write-block" on the system index to migrate - now using a dedicated transport request rather than a settings update. Furthermore, we no longer delete the write-block prior to deleting the index, as this was another source of potential data loss. Additionally, we now remove the block if the migration fails.

This is a backport of #121327
Jira: ES-9724

This PR removes a potential cause of data loss when migrating system indices. It does this by changing the way we set a "write-block" on the system index to migrate - now using a dedicated transport request rather than a settings update. Furthermore, we no longer delete the write-block prior to deleting the index, as this was another source of potential data loss. Additionally, we now remove the block if the migration fails.
@JVerwolf JVerwolf requested a review from a team as a code owner February 10, 2025 21:25
@JVerwolf JVerwolf added :Core/Infra/Core Core issues without another label >bug labels Feb 10, 2025
@JVerwolf JVerwolf added the auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) label Feb 10, 2025
@JVerwolf JVerwolf enabled auto-merge (squash) February 10, 2025 22:06
@elasticsearchmachine elasticsearchmachine merged commit 7dce356 into elastic:9.0 Feb 10, 2025
16 checks passed
@JVerwolf JVerwolf deleted the bugfix/reduce-data-loss-in-system-index-migration branch February 10, 2025 22:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) backport >bug :Core/Infra/Core Core issues without another label v9.0.1

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants