(ES 8.6.2, W10)
In Insomnia, when I try to delete an non-existent index, using command DELETE and url https://localhost:9500/my_test_index, I always seem to get a JSON object like this:
{
"error": {
"root_cause": [
...
"status": 404
}
Similarly when I do the above in Python, using requests
, I get the above response.
But when I run a reqwest
request (in Rust) doing that same request I sometimes get the above but often get this:
{
"acknowledged": true
}
The reason I'm doing this is to delete the index if it exists. Either 200 or 404 would therefore be acceptable status codes. But if I get "acknowledged", true or false, I don't know what that means: it's true
even if the index doesn't exist.
This is all happening on a local machine, with one shard. At the current time there are no other indices in my shard. When I create this index, it has a yellow status. So my server/shard seem to be healthy enough.
Can anyone suggest why this might be happening? Might "acknowledged" mean in this case that the server is busy (on a previous command)? Is it possible that Rust's reqwest
code works faster than Python?