-
Notifications
You must be signed in to change notification settings - Fork 61
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
Renaming, and Backwards Compatibility for Indices #17
Comments
Hi, for what dashboards team has done, changing the use for Is this acceptable and should be applied to rest of the project? Otherwise maintaining support for 2 sets of indices may cause major overhead in terms of code logic and testing. Please keep us posted on the decisions, it will help our team make decision down the road. Thanks, |
Sure definitely. Yes the indices are permanently renamed.
Similarly it's the same with |
When an OpenSearch with a plugin joins a cluster, check old name, and create the new one if that doesn't exist. |
@dblock @saratvemulapalli |
Does this mean a new OpenSearch node will perform indices upgrade once it first join a cluster? This approach makes more sense IMO and it is also be expandable to other plugins. something like public CreateAndCopy(final String oldIndex, final String newIndex) {
// create new index
// check if old index exist
// if yes, copy the content to new index
} If it's possible, adding the copy operation as a hook on index write for legacy indices should help keeping things coherent.
Going with this approach, the additional tests should be surrounding added functions and on-write hooks. It should reduce the complexity comparing to supporting both. |
I really just started looking into this, sorry :( |
I don't think so, I think all Sarat is saying is that there's this Duplicating indexes live at startup/joining a cluster just to rename them seems potentially extremely expensive and error-prone. |
We have decided not to rename indices as it is a lot of work and increases the complexity. @dblock can we close this issue? |
To track for #12
The text was updated successfully, but these errors were encountered: