You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
A user reported: When a multisearch template request is sent to the client and if the request partially succeeds i.e. one or more templates in the request fails, instead of returning an error response for that particular item, the client fails with the below exception and discards all the results from that request.
org.opensearch.client.util.MissingRequiredPropertyException: Missing required property 'ErrorResponse.status'
at __randomizedtesting.SeedInfo.seed([B7831F18B61D38F2:88DBA2B968F5C73E]:0)
at app//org.opensearch.client.util.ApiTypeHelper.requireNonNull(ApiTypeHelper.java:89)
at app//org.opensearch.client.opensearch._types.ErrorResponse.<init>(ErrorResponse.java:72)
at app//org.opensearch.client.opensearch._types.ErrorResponse$Builder.build(ErrorResponse.java:156)
at app//org.opensearch.client.opensearch._types.ErrorResponse$Builder.build(ErrorResponse.java:119)
at app//org.opensearch.client.json.ObjectBuilderDeserializer.deserialize(ObjectBuilderDeserializer.java:98)
at app//org.opensearch.client.json.DelegatingDeserializer$SameType.deserialize(DelegatingDeserializer.java:60)
at app//org.opensearch.client.json.UnionDeserializer$SingleMemberHandler.deserialize(UnionDeserializer.java:91)
at app//org.opensearch.client.json.UnionDeserializer.deserialize(UnionDeserializer.java:326)
at app//org.opensearch.client.json.JsonpDeserializerBase$ArrayDeserializer.deserialize(JsonpDeserializerBase.java:343)
at app//org.opensearch.client.json.JsonpDeserializerBase$ArrayDeserializer.deserialize(JsonpDeserializerBase.java:308)
at app//org.opensearch.client.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:87)
at app//org.opensearch.client.json.ObjectDeserializer$FieldObjectDeserializer.deserialize(ObjectDeserializer.java:81)
at app//org.opensearch.client.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:185)
at app//org.opensearch.client.json.ObjectDeserializer.deserialize(ObjectDeserializer.java:146)
at app//org.opensearch.client.json.JsonpDeserializer.deserialize(JsonpDeserializer.java:87)
at app//org.opensearch.client.json.ObjectBuilderDeserializer.deserialize(ObjectBuilderDeserializer.java:91)
at app//org.opensearch.client.json.DelegatingDeserializer$SameType.deserialize(DelegatingDeserializer.java:55)
at app//org.opensearch.client.transport.endpoints.EndpointWithResponseMapperAttr$1.deserialize(EndpointWithResponseMapperAttr.java:68)
at app//org.opensearch.client.transport.rest_client.RestClientTransport.decodeResponse(RestClientTransport.java:322)
at app//org.opensearch.client.transport.rest_client.RestClientTransport.getHighLevelResponse(RestClientTransport.java:288)
at app//org.opensearch.client.transport.rest_client.RestClientTransport.performRequest(RestClientTransport.java:148)
at app//org.opensearch.client.opensearch.OpenSearchClient.msearchTemplate(OpenSearchClient.java:1006)
at app//org.opensearch.client.opensearch.OpenSearchClient.msearchTemplate(OpenSearchClient.java:1022)
How can one reproduce the bug?
Run msearch_template request where one or more templates would fail.
What is the expected behavior?
All results from the server should be returned in this scenario.
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
After investigating the issue, this happens because for msearch request, when one or more searches fail, the server returns a status:
What is the bug?
A user reported: When a multisearch template request is sent to the client and if the request partially succeeds i.e. one or more templates in the request fails, instead of returning an error response for that particular item, the client fails with the below exception and discards all the results from that request.
How can one reproduce the bug?
Run msearch_template request where one or more templates would fail.
What is the expected behavior?
All results from the server should be returned in this scenario.
What is your host/environment?
Operating system, version.
Do you have any screenshots?
If applicable, add screenshots to help explain your problem.
Do you have any additional context?
After investigating the issue, this happens because for
msearch
request, when one or more searches fail, the server returns a status:whereas for msearch_template it does not
The text was updated successfully, but these errors were encountered: