We are utilizing the C# MongoDB.Driver library, specifically the latest version (2.23.1). However, we are experiencing intermittent and inconsistent behavior with the UpdateAsync and UpdateOne methods. These methods fail to update
the collection randomly, and no error is provided. This issue occurs unpredictably, and the update operation does not consistently succeed, even though no explicit error is reported.
Following is the sample Code
Env. .net Core 6.0 , c# mongodb Driver is 2.23.1 for both (Bson, Mongodb Driver)
var filters = Builders<Users>.Filter.Eq("Id", ObjectId.Parse(userAvailability.User_Id));
var update = Builders<Users>.Update.Set("Available", objAvailable);
var collection = _users.DBCollection();
var result = await collection.UpdateOneAsync(filters, update);