Foundatio.Repositories
Foundatio.Repositories copied to clipboard
ElasticRepository Retry on BulkResult error
Some items may fail due to version change or multiple bulk results running at the same time. We should retry this and possibly return the number of modified documents (bulkResult.Items). Also, we should invalidate the cache before returning..
https://github.com/exceptionless/Foundatio.Repositories/blob/master/src/Elasticsearch/Repositories/ElasticRepositoryBase.cs#L178
@ejsmith looks like what we talked about this morning :)
Looks like we need to add
- the ability to pass a cancel token to a bulk operation
- return a result of what operations failed or succeed
- Handle retries when we encounter 429's.