Skip to content
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] NPE on bulk upsert request #890

Closed
vladru opened this issue Oct 30, 2024 · 2 comments
Closed

[BUG] NPE on bulk upsert request #890

vladru opened this issue Oct 30, 2024 · 2 comments

Comments

@vladru
Copy link

vladru commented Oct 30, 2024

What is the bug?

Bulk upsert request fails with HTTP status code 500 and null pointer exception with reason
"Cannot invoke "Object.toString()" because the return value of "java.util.Map.get(Object)" is null"

How can one reproduce the bug?

Use simplest bulk upsert request, for an example from the API documentation:

POST _bulk
{ "update": { "_index": "movies", "_id": "tt0816711" } }
{ "doc" : { "title": "World War Z" }, "doc_as_upsert": true }

The request fail as described above.
I've tried send such request using javascript client (v.2.12.0) and also from DevTools in OpenSearch Dshboard - responses are the same

What is the expected behavior?

Request inserts new record to the index.

What is your host/environment?

Client side Windows 11 Enterprise
Domain cluster OpenSearch 2.15 (latest)

Do you have any screenshots?

No

Do you have any additional context?

No

@vladru
Copy link
Author

vladru commented Oct 30, 2024

I think it was mustake create this bug report in this project, so I've created new one in
opensearch-project/OpenSearch#16524

@dblock
Copy link
Member

dblock commented Oct 30, 2024

Thanks, let's close this one here.

@dblock dblock closed this as completed Oct 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants