question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[BUG] Breaking changes with opensearch.http.override_main_response_version=true

See original GitHub issue

There are a number of breaking changes in 2.0 RESTful APIs. I suspect (still need to confirm) that breaks opensearch.http.override_main_response_version=true (https://opensearch.org/docs/latest/clients/agents-and-ingestion-tools/index/).

I think we have two options.

a) Remove opensearch.http.override_main_response_version=true. b) Ensure backwards compatibility.

This is tangentially related to https://github.com/opensearch-project/opensearch-clients/issues/17.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:23 (20 by maintainers)

github_iconTop GitHub Comments

3reactions
nknizecommented, Apr 21, 2022

That would be the upgrade path: upgrade client to 2.0, it should work for both versions, than start upgrading clusters.

That is the correct upgrade path for clients depending on the HLRC.

opensearch.http.override_main_response_version=true doesn’t impact the node connectivity with ES 7.10

Correct. opensearch.http.override_main_response_version=true does not impact internal node connectivity it was only added to ensure compatibility w/ legacy 7.x clients. I’m sorry if that wasn’t clear. My point is that 2.0.0 supports Transport API compatibility back to 7.10.0. The HLRC (client facing API) does not include Version.onOrAfter logic so it doesn’t subscribe to the same compatibility guarantees; it follows the same deprecation / removal path as features which is why the types endpoints were removed (after being deprecated in 7.x/1.x).

I’m not sure the project should be shy about 2.0.0 having breaking changes

💯

there is some dissonance between OpenSearch 2.0.0 saying it’s 7.10.2 yet not having the same API

Agree. I’ve slept since we removed the transport client December of last year so we don’t need to retain transport client compatibility (nor should the REST client spoofing matter here).

+1 for removing the override_main_response_version property and forcing client upgrades.

2reactions
nknizecommented, Jul 25, 2022

Can anyone pick this up?

opensearch-project/OpenSearch#3031

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting Amazon OpenSearch Service
When you initiate a configuration change, the domain status changes to "Processing" while OpenSearch Service creates a new environment. In the new environment, ......
Read more >
Frequently Asked Questions - OpenSearch
If functionality requires a breaking change, we will introduce a new major ... 1.17 How are new features, bug fixes, and other development...
Read more >
Document history for Amazon OpenSearch Service
This topic describes important changes to Amazon OpenSearch Service. Service software updates add support for new features, security patches, bug fixes, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found