Skip to content

[7.15] Properly apply system flag on data streams when restoring a snapshot#75855

Merged
elasticsearchmachine merged 2 commits intoelastic:7.xfrom
AthenaEryma:backport/7.x/system-data-stream-restore-fix
Jul 29, 2021
Merged

[7.15] Properly apply system flag on data streams when restoring a snapshot#75855
elasticsearchmachine merged 2 commits intoelastic:7.xfrom
AthenaEryma:backport/7.x/system-data-stream-restore-fix

Conversation

@AthenaEryma
Copy link
Copy Markdown
Contributor

This commit modifies the restore process to ensure that the system
flag is properly applied to restored data streams. Otherwise, this
flag is lost when restoring system data streams, which causes errors
and/or assertion failures as the backing indices are properly marked
as system indices, but the restored data stream is no longer a
system data stream.

Also adds a test to ensure this flag survives a round trip through
the snapshot/restore process.

Backport of #75819

elastic#75819)

This commit modifies the restore process to ensure that the `system`
flag is properly applied to restored data streams. Otherwise, this
flag is lost when restoring system data streams, which causes errors
and/or assertion failures as the backing indices are properly marked
as system indices, but the restored data stream is no longer a
system data stream.

Also adds a test to ensure this flag survives a round trip through
the snapshot/restore process.
@AthenaEryma AthenaEryma added backport auto-merge-without-approval Automatically merge pull request when CI checks pass (NB doesn't wait for reviews!) v7.15.0 labels Jul 29, 2021
@elasticsearchmachine elasticsearchmachine merged commit a40e1c6 into elastic:7.x Jul 29, 2021
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 v7.15.0

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants