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
[BUG] Elasticsearch RestHighLevelClient can not get response of Info API from OpenSearch server due to missing "tagline" field in MainResponse #901
Comments
let's use "The OpenSearch Project: https://opensearch.org/" as the tag line for now. I'm sure somebody can come up with something better in the future :) |
@tlfeng imho we should set the tag line in all cases. I think it would be a bit odd to have this tied to a 'compatibility mode' and the value is not the previous tag line. Unless we are totally against having a tag line going forward. |
I think the reason to put into compatibility mode is to mitigate the risk we might break something that's now NOT expecting a tagline (post RC-1), But I think that's a relatively low probability*, so not worth adding the complexity. Long story short, let's not put it behind the compatibility mode unless someone has a good reason to do it that way. (*she said, famous last wordsingly). |
Thanks @mch2 for your opinion. 😄 Make sense, we can have the tagline going forward.
Thanks @CEHENKLE. 👍 Ah, this is a good point. I got that adding the complexity is not necessary. |
"tagline" field has been added back to MainResponse in server side. in PR #913, the issue should be resolved now. |
fixed in #913 |
Describe the bug
Source: https://discuss.opendistrocommunity.dev/t/spring-data-integration/6239/4
Because the "tagline" field is removed from "MainResponse" in both sever and RHLC side of OpenSearch in PR #427, Info API calls from the existing Elasticsearch Rest-High-Level-Client (such as version 7.10.2) can not get the required "tagline" field from OpenSearch server (version 1.0.0). It causes compatibility issues with some libraries that support Elasticsearch.
For example, SpringData for Elasticsearch uses elasticsearch-rest-high-level-client library to call
org.elasticsearch.client.RestHighLevelClient.info()
to retrieve the version of the ES cluster in this line."tagline" is a required field in the response of that call, without the field, there will be an error.
To Reproduce
Steps to reproduce the behavior:
No detailed steps, but use "SpringData for Elasticsearch" with an OpenSearch 1.0.0 cluster.
Expected behavior
Plugins
No plugins enabled.
Screenshots
(none)
Host/Environment (please complete the following information):
Platform-independent
Additional context
The issue of removing the tagline: #362
The issue of requesting support for "Spring Data for Elasticsearch": #542
The text was updated successfully, but these errors were encountered: