elasticsearch-net icon indicating copy to clipboard operation
elasticsearch-net copied to clipboard

Incorrect DeleteAsync response result status when Index name was not correct

Open mertmtn opened this issue 7 months ago • 0 comments

Elastic.Clients.Elasticsearch version:8.14.6

Elasticsearch version: 8.14.13

.NET runtime version: .NET 8

Operating system version: Windows 10

Description of the problem including expected versus actual behavior: When I handle an error during delete an record by id from index, I giving the wrong result status. I changed actual indexname with wrong index name to handle error messages.

image

Below photo shows that handling an error. Result property assigned Updated but there is no success operation during delete operation on Watch panel image

In addition to this error, there is no exception result of this problem. IsSuccess() function, returns true. image

Expected behavior In NEST library, result status was "Error". Therefore, Elastic.Clients.Elasticsearch has return status as Error or any related status.

mertmtn avatar Jul 23 '24 22:07 mertmtn