Deprecate REST client (finally) - #22116
Conversation
Signed-off-by: Andriy Redko <drreta@gmail.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #22116 +/- ##
============================================
- Coverage 73.36% 73.34% -0.03%
+ Complexity 75847 75837 -10
============================================
Files 6064 6064
Lines 344500 344500
Branches 49575 49575
============================================
- Hits 252733 252659 -74
- Misses 71599 71686 +87
+ Partials 20168 20155 -13 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Signed-off-by: Andriy Redko <drreta@gmail.com>
|
hey @reta 👋🏻 we have an OpenSearch-based client in Hibernate Search (https://github.com/hibernate/hibernate-search/tree/main/backend/elasticsearch-client/opensearch-rest-client) that users can use when connecting to OpenSearch clusters. Neither high-level (my understanding is that you plan to deprecate it anyway, and it's not suitable in the first place for the use case 🙂) nor the opensearch-Java clients, which are suggested, look like a good alternative here ... Why the current RestClient was a good fit -- we need a client that can talk to any OpenSearch version without bringing version specifics with it. Hibernate Search can handle versions internally, but it needs something to handle the node management + sending requests. |
Description
Deprecate REST client (
RestClient). The internal HTTP client (see please #20634) has been introduced and designed for OpenSearch internal use only. TheRestHighLevelClientis still going to be supported for now but migrated away fromRestClient.Related Issues
Closes #5424
Check List
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.