-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Description
NEST/Elasticsearch.Net version:
7.0.1
Elasticsearch version:
7.2.0
Description of the problem including expected versus actual behavior:
Expected:
IsValid
to befalse
when"failures" : []
response is not empty (just likeReindexOnServerResponse.IsValid
- Be able to read the
response.failures
of a reindex task
Actual:
IsValid
istrue
when"failures" : []
is not empty
Steps to reproduce:
- Index documents into source index
- Create destination index with 0 replicas
- Create reindex task with
WaitForCompletion(false)
- Poll status using
GetTaskAsync
using theTaskId
and checkIsValid
andCompleted
- Disconnect data node containing the shards of the indices
Response from _tasks/<id>
includes failures
(removed some fields for readability):
{
"completed" : true,
"task" : {
"action" : "indices:data/write/reindex",
"status" : {
"total" : 2695491,
"updated" : 0,
"created" : 0,
"deleted" : 0,
"batches" : 499,
"version_conflicts" : 498000,
"noops" : 0
},
"description" : "reindex from [my-index-1] to [my-index-2]",
"cancellable" : true
},
"response" : {
"took" : 656338,
"timed_out" : false,
"total" : 2695491,
"updated" : 0,
"created" : 0,
"deleted" : 0,
"batches" : 499,
"version_conflicts" : 498000,
"noops" : 0,
"failures" : [
{
"index" : "my-index-2",
"type" : "_doc",
"id" : "bowFbmoBnnQlcVPVmn7H",
"cause" : {
"type" : "node_not_connected_exception",
"reason" : "[instance-0000000070][1.2.3.4:19437] Node not connected"
},
"status" : 500
}
]
}
}
Metadata
Metadata
Assignees
Labels
No labels