Closed BrendonFaleiro closed 3 days ago
I think this will also require a change in the api spec: https://github.com/opensearch-project/opensearch-api-specification/blob/33aa91a95dcb2155cc05b9917a790ca46aa7c35e/spec/schemas/_common.yaml#L1258
I think this will also require a change in the api spec: https://github.com/opensearch-project/opensearch-api-specification/blob/33aa91a95dcb2155cc05b9917a790ca46aa7c35e/spec/schemas/_common.yaml#L1258
Yes, please! With a test.
@dblock
With a test.
Did you mean in opensearch-java or in the api-spec? I have added a commit with the test.
I have sent the following requests:
Please let me know if anything else needs to be done.
Closed the previous pull requests. Here are the updated requests:
Closed the previous pull requests.
You can amend and force push btw, less work.
This fix was released in v2.11.1
What is the bug?
Similar to Elasticsearch bug: https://github.com/elastic/elasticsearch-java/issues/403. When you do a scripted upsert with a script that does a "noop", there is no source in the response. But the InlineGet has source as a required field. https://github.com/opensearch-project/opensearch-java/blob/main/java-client/src/main/java/org/opensearch/client/opensearch/_types/InlineGet.java#L141-L146
A bulk request with an update operation set to do scripted upsert where the script chooses to set
ctx.op = 'none'
currently fails withHow can one reproduce the bug?
What is the expected behavior?
This should succeed.
The response from Opensearch that reaches the Transport is
Do you have any additional context?
Similar to Elasticsearch bug: https://github.com/elastic/elasticsearch-java/issues/403.