The method FindOneAndReplaceAsync sometimes return the wrong entity because internally has an async method for replace the entity and after has a return with another async method for get the entity, the problem is sometimes the get method finish first and return the entity without the changes. This issue cause in my case a concurrency exception because don´t update the eTag field.
The method FindOneAndReplaceAsync sometimes return the wrong entity because internally has an async method for replace the entity and after has a return with another async method for get the entity, the problem is sometimes the get method finish first and return the entity without the changes. This issue cause in my case a concurrency exception because don´t update the eTag field.