-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Forward compatibility of Opensearch 1.3 with Opensearch 2.5 cluster #8082
Comments
@erezgong Can you be more specific about what exactly needs to change? I would expect you to be able to omit the type parameters in the requests using the 1.3 client and have it work against a 2.5 cluster. Is that not the case? |
Hey @andrross, thanks for the fast feedback.
Change this if to accept Strings.EMPTY_ARRAY :
to:
For this I found a workaround without changing this code.
WDYT? |
I recommend moving to https://github.com/opensearch-project/opensearch-java in which we are trying to deprecate this dependency altogether (opensearch-project/opensearch-java#326). You should be able to upgrade the client that supports multiple versions of OpenSearch. |
I know it's the recommendation, but our usage of rest-high-level-client is huge, and cannot be replaced easily. |
@erezgong Stepping back, are you proposing to add support for 2.x servers to 1.x high level REST clients or vice-versa? While it works for |
@dblock I think @erezgong is asking to make changes to the 1.3 client so that it can work with 2.x, at least in the cases he has identified where it is too strict about expecting _type to be present to work with 2.x. @erezgong We're really only doing security patches and critical bug fixes to the 1.3 release line now. You're of course welcome to apply the patches you've identified yourself and make your own distribution build. Is that an option for you? |
Correct. |
I think we all agree. Let's not add more features to 1.3.x, that would require bumping versions to 1.4 and we don't want to make any more 1.x's. Should we close this? |
@erezgong closing this for now. please feel free to ask to re-open if you still have some topics to cover. |
Is your feature request related to a problem? Please describe.
To have a smooth migration between Opensearch 1.3 to Opensearch 2.5, we must change the clusters first and then change to client.
Describe the solution you'd like
I would like to do the minimal changes to some request and responses, to allow empty type.
Describe alternatives you've considered
The alternative of taking a production system down for upgrading both the client and the clusters together is risky and hurtful for obvious reasons.
Additional context
Functions needed to be slightly changed:
The text was updated successfully, but these errors were encountered: