Litote / kmongo

[deprecated] KMongo - a Kotlin toolkit for Mongo

Home Page:https://litote.org/kmongo/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support automatic retry of transactions on TransientTransactionError

mervyn-mccreight opened this issue · comments

As far as I encountered this is a common pattern you have to implement yourself when using transactions in MongoDB.

The sync driver already provides an implementation for this by itself (https://mongodb.github.io/mongo-java-driver/4.9/apidocs/mongodb-driver-sync/com/mongodb/client/ClientSession.html#withTransaction(com.mongodb.client.TransactionBody)). Unfortunately I could not find an equivalent in the async driver, but maybe I'm just blind.

What do you think, would this be a nice addition for KMongo to support this?

This is more an enhancement for the mongo java driver. Please fill a bug in the reactive java mongo driver project ;)