Skip to content

ShardFailure response must not require the 'primary' property#1878

Open
janhoy wants to merge 1 commit intoopensearch-project:mainfrom
janhoy:reproduce-shard_failure_parsing
Open

ShardFailure response must not require the 'primary' property#1878
janhoy wants to merge 1 commit intoopensearch-project:mainfrom
janhoy:reproduce-shard_failure_parsing

Conversation

@janhoy
Copy link
Contributor

@janhoy janhoy commented Feb 13, 2026

Description

When a request returns error with failed_shards, the current json parsing code requires that the shard object has a primary boolean property, but that is not always the case. The requirement was introduced in opensearch-project/opensearch-api-specification#981. This PR is only to add a failing unit test, that should be resolved once opensearch-project/opensearch-api-specification#1039 is merged and released.

Issues Resolved

This PR does not resolve anything, only adds a test, see above.

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.

Signed-off-by: Jan Høydahl <jan.git@cominvent.com>
@janhoy janhoy force-pushed the reproduce-shard_failure_parsing branch from 526be73 to 04c58f4 Compare February 16, 2026 21:10
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