Skip to content

Fix deserialization regression when parsing failed_shards from a search result#1889

Open
janhoy wants to merge 3 commits intoopensearch-project:3.xfrom
janhoy:backport-shardfailure-primary-fix-3x
Open

Fix deserialization regression when parsing failed_shards from a search result#1889
janhoy wants to merge 3 commits intoopensearch-project:3.xfrom
janhoy:backport-shardfailure-primary-fix-3x

Conversation

@janhoy
Copy link
Contributor

@janhoy janhoy commented Feb 17, 2026

Description

This is a surgical back port of the intent from opensearch-project/opensearch-api-specification#1040 but intended for 3.x line of java client. It targets branch 3.x only, and patches OpenAPI spec with only one line to rectify the regression caused when making primary a required field.

The reason I did not attempt this over at opensearch-api-specification repo is that that repo seems to not have a multi-version release scheme set up, everything is put into main branch and it is unclear what version of the spec is currently used in java-client 3.6 and how to patch only that version.

Issues Resolved

Fixes #1877

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.

…ch result

Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

Comments