-
Notifications
You must be signed in to change notification settings - Fork 1.2k
7.5.0 fails to index documents using low level client. #4289
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
Comments
Stepping into this further with the old code this passes (on 7.4.2). Regardless looks like the index isn't being created due to a bad check with IsValid (in our code). I thought this had changed at some point where 404's were valid on exists requests. var existsResponse = await _client.Indices.ExistsAsync(errorIndex).AnyContext();
_logger.LogTraceRequest(existsResponse);
if (!existsResponse.IsValid || existsResponse.Exists)
return true; I updated the call to |
We used to always send POST which is not right either but the server accepted it. Now that we have a new format and transform to the old format in the interim we only picked up PUT for all which is not correct for index operations without an id.
This is indeed a nasty new bug 😢 Opened #4290 to address this. What happened is that the format for the rest specification files changed and we used to always pick up With the switch we started picking up |
* Fix #4289 low level client index http method generation wrong We used to always send POST which is not right either but the server accepted it. Now that we have a new format and transform to the old format in the interim we only picked up PUT for all which is not correct for index operations without an id. * add unit tests
* Fix #4289 low level client index http method generation wrong We used to always send POST which is not right either but the server accepted it. Now that we have a new format and transform to the old format in the interim we only picked up PUT for all which is not correct for index operations without an id. * add unit tests (cherry picked from commit 02d4076)
NEST/Elasticsearch.Net version: 7.5.0
Elasticsearch version: 7.4.2 & 7.5.0
Description of the problem including expected versus actual behavior:
We upgraded our clients this morning from 7.4.2 to 7.5.0 and we had two tests failing. This one occurs after we try to create an error index for documents that failed to index.
Please note this index is created in a previous call:
I tried going through the diff between the two versions but it was massive. I didn't see anything that really stood out of what would have changed in the low level client.
The text was updated successfully, but these errors were encountered: