Hi,
In my .Net project using nuget package:
Couchbase.Transactions (3.6.2).
Using a single couchbase Node locally:
couchbase:community-7.6.2
Implementing Couchbase Transactions.
Transaction Functionality is working, with committing and Rolling Back successfully using
code as below:
var result = await cluster.ClusterInstance.Transactions.RunAsync(async ctx =>
{
ITransactionContext transactionContext = new TransactionContext(ctx, _loggerFactory.CreateLogger());
IDatabaseTransaction databaseTransaction = new DatabaseTransaction(transactionContext, _databaseProvider, _couchbaseMap, _loggerFactory.CreateLogger());
await transactionAction(databaseTransaction);
}, new Couchbase.Integrated.Transactions.Config.PerTransactionConfig
{
DurabilityLevel = _documentDbOptions.TransactionDurabilityLevel, // Set to None
KeyValueTimeout = TimeSpan.FromSeconds(_documentDbOptions.TransactionOperationTimeoutInSeconds),
Timeout = TimeSpan.FromSeconds(_documentDbOptions.TransactionTimeoutInSeconds)
});
_logger.LogInformation($“Transaction completed with UnStagingResult of:{result.UnstagingComplete}”);
One issue, is that in Visual Studio in the Debug window when running the code, get a constant steady stream of the below errors , that do not affect the Transaction Couchbase Functionality. Below errors start, when issue the above code for the first time:
Is there a way to suppress the below errors that are showing up, or is there something that I am doing incorrectly in my code, to receive these errors?
Note: The below errors are not caused by my code searching for a document that does not exist, but appear to be caused by the sdk
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in Couchbase.NetClient.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in Couchbase.NetClient.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in Couchbase.NetClient.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in System.Private.CoreLib.dll
Exception thrown: ‘Couchbase.Core.Exceptions.KeyValue.DocumentNotFoundException’ in Couchbase.NetClient.dll