How to change transactionLifetimeLimitSeconds in my cloud replica set. Firstly i was creating new session:
var client = new MongoClient(new MongoUrl(_connectionString));
var session= client.StartSession();
Next
session.StartTransaction();
/* Code that takes longer than 1 minute*/
session.CommitTransaction();
When the code between start and commit transaction ends im getting Error like
Exception thrown: 'MongoDB.Driver.MongoCommandException' in MongoDB.Driver.Core.dll ("Command insert failed: Transaction 1 has been aborted..") Exception thrown: 'MongoDB.Driver.MongoCommandException' in MongoDB.Driver.Core.dll
If the code take less than 1 minute everything is ok.