generated from amazon-archives/__template_Custom
-
Notifications
You must be signed in to change notification settings - Fork 129
Fix operation "convert_index_to_remote" bug . Rmote index name using the remote_ prefix instead of _remote suffix w… #1427
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
Open
liuyonghengheng
wants to merge
1
commit into
opensearch-project:main
Choose a base branch
from
liuyonghengheng:main
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Looked at your issue. While I agree that restore action can lead to a policy starting off again but changing the index name may not be a full proof solution since there can be existing policies defined on pattern like
remote_*
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.
We probably need a solution like this where during policy validation itself user defines a pattern to be appended to a restored index and probably during policy definition itself a exclude pattern template is set.
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.
1.Even if we use this solution, I think we cannot fully avoid conflicts. We may still have local indexes with names matching pattern "abc* _demote*", so this template could affect local indexes like "abc*_demote*".
The solution of changing the remote suffix to the remote prefix is to solve the conflicts that always occur, and then we can enhanced and optimized the settings continue.
2.During define policy, set a exclude index pattern. I agree that this solution can resolve this issue fully, because the match index is the difference-set of index-pattern and exclude-index-pattern ,and it will not affect other indexes.
3.before "convert_index_to_remote" operation implemented and published, we implemented a solution internal named "searchable_snapshot", that use most origin settings of snapshots-restore,
so it's more flexible ,users can use rename_replacement setting to set the new index name, and can proactively avoid conflicts. If most thinks it's possible to add settings like "rename_deplacement" , I can also submit this implement code.
4.Please provide as many ideas and advice as possible and have a discussions, I will implement the solution which most approve.