Foundatio.Repositories icon indicating copy to clipboard operation
Foundatio.Repositories copied to clipboard

ElasticRepository Retry on BulkResult error

Open niemyjski opened this issue 9 years ago • 2 comments

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

niemyjski avatar Jun 20 '16 13:06 niemyjski

@ejsmith looks like what we talked about this morning :)

niemyjski avatar Aug 29 '16 17:08 niemyjski

Looks like we need to add

  1. the ability to pass a cancel token to a bulk operation
  2. return a result of what operations failed or succeed
  3. Handle retries when we encounter 429's.

niemyjski avatar Sep 22 '16 16:09 niemyjski