-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] BulkRequest with scripted noop upsert UpdateOperation fails with "missing required property" #1042
Comments
I think this will also require a change in the api spec: |
Yes, please! 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. |
Addresses bug in opensearch-project#1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com>
Closed the previous pull requests. Here are the updated requests: |
You can amend and force push btw, less work. |
Addresses bug in #1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com> Co-authored-by: Brendon Faleiro <faleiro@amazon.com>
Addresses bug in opensearch-project#1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com>
Addresses bug in #1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com> Co-authored-by: Brendon Faleiro <faleiro@amazon.com>
Addresses bug in opensearch-project#1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com> Co-authored-by: Brendon Faleiro <faleiro@amazon.com> (cherry picked from commit 69aa51c)
* Made InlineGet source field nullable (#1046) Addresses bug in #1042 Signed-off-by: Brendon Faleiro <faleiro@amazon.com> Co-authored-by: Brendon Faleiro <faleiro@amazon.com> (cherry picked from commit 69aa51c) * Fix changelog Signed-off-by: Thomas Farr <tsfarr@amazon.com> --------- Signed-off-by: Thomas Farr <tsfarr@amazon.com> Co-authored-by: Brendon Faleiro <nodnerb@cs.ucla.edu>
This fix was released in v2.11.1 |
What is the bug?
Similar to Elasticsearch bug: elastic/elasticsearch-java#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: elastic/elasticsearch-java#403.
The text was updated successfully, but these errors were encountered: