Removing the check for Task info is nil
Some Elasticsearch instances do not return task info in the response when checking if a task is complete. This is not an error when this happens.
@@ -82,10 +82,6 @@ func (backend *ES2Backend) ReindexStatus(ctx context.Context, taskID string) (bo
return false, err
}
- if tasksGetTaskResponse.Task == nil {
- return false, fmt.Errorf("ReindexStatus: task %s not found", taskID)
- }
-
return tasksGetTaskResponse.Completed, nil
}
