-
Notifications
You must be signed in to change notification settings - Fork 501
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
Older-version snapshots and repositories are guaranteed to work with … #7275
Conversation
@@ -449,6 +449,8 @@ We recommend ceasing write requests to a cluster before restoring from a snapsho | |||
|
|||
Snapshots are only forward-compatible by one major version. If you have an old snapshot, you can sometimes restore it into an intermediate cluster, reindex all indexes, take a new snapshot, and repeat until you arrive at your desired version, but you might find it easier to just manually index your data in the new cluster. | |||
|
|||
Older-version snapshots and the repositories that contain them continue to be compatible with older versions of OpenSearch. If you have a repository containing snapshots taken by an old version, you then upgrade to another version and snapshots are taken after that as well. The old snapshots can be restored to a new cluster running the same version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the submission @tan3-netapp, are there limitations to using older versioned snapshots in newer versions of OpenSearch? Is it restricted to major versions, for example?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I made an update here after encountering this issue. What I updated is just a guarantee that older versioned snapshots can always be restored to a new cluster running the same version even if the snapshot repository has been modified by the newer version. (as I put it in the Question 2 in the GitHub issue mentioned above).
Anyway, I've changed my wording. Please have another look. Thanks!
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@tan3-netapp @Naarcha-AWS Please see my comments/changes and let me know if you have any questions. Thanks!
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
@@ -447,7 +447,9 @@ We recommend ceasing write requests to a cluster before restoring from a snapsho | |||
1. A write request to the now-deleted alias creates a new index with the same name as the alias. | |||
1. The alias from the snapshot fails to restore due to a naming conflict with the new index. | |||
|
|||
Snapshots are only forward-compatible by one major version. If you have an old snapshot, you can sometimes restore it into an intermediate cluster, reindex all indexes, take a new snapshot, and repeat until you arrive at your desired version, but you might find it easier to just manually index your data in the new cluster. | |||
Snapshots are only forward-compatible by one major version. Snapshots taken by older OpenSearch versions can continue to be restored by the version of OpenSearch that originally took the snapshot even after a version upgrade. For example - a snapshot taken from OpenSearch 2.11.0 or lower can be used snapshot restores with 2.11.0 clusters even after upgrading to 2.12.0. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Confirm that my changes to the last sentence retain technical accuracy.
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @tan3-netapp! LGTM
@natebower I just added again the part emphasizes that 2.11 snapshots can be snapshot restored to 2.11 clusters. Please have a look again. |
_tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md
Outdated
Show resolved
Hide resolved
Done 😄 |
Thanks @natebower! :) |
…older versions of OpenSearch Signed-off-by: tan3-netapp <[email protected]>
Signed-off-by: tan3-netapp <[email protected]>
Signed-off-by: Naarcha-AWS <[email protected]>
…hot-restore.md Signed-off-by: Naarcha-AWS <[email protected]>
…hot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]>
…hot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]>
…lusters to emphasize Signed-off-by: tan3-netapp <[email protected]>
…hot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]>
#7275) * Older-version snapshots and repositories are guaranteed to work with older versions of OpenSearch Signed-off-by: tan3-netapp <[email protected]> * Change the wording Signed-off-by: tan3-netapp <[email protected]> * Apply suggestions from code review Signed-off-by: Naarcha-AWS <[email protected]> * Update _tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md Signed-off-by: Naarcha-AWS <[email protected]> * Update _tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]> * Update _tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]> * Add again the part where the 2.11 snapshots can be restored to 2.11 clusters to emphasize Signed-off-by: tan3-netapp <[email protected]> * Update _tuning-your-cluster/availability-and-recovery/snapshots/snapshot-restore.md Co-authored-by: Nathan Bower <[email protected]> Signed-off-by: tan3-netapp <[email protected]> --------- Signed-off-by: tan3-netapp <[email protected]> Signed-off-by: Naarcha-AWS <[email protected]> Co-authored-by: Naarcha-AWS <[email protected]> Co-authored-by: Nathan Bower <[email protected]> (cherry picked from commit 5ef5170) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
…older versions of OpenSearch
Description
Describe what this change achieves.
Issues Resolved
List any issues this PR will resolve, e.g. Closes [...].
Checklist
For more information on following Developer Certificate of Origin and signing off your commits, please check here.