Command update failed: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction

Hello,

I using mongodb v5.0 with c# drivers. Today I saw in my logs.

Command update failed: WriteConflict error: this operation conflicted with another operation. Please retry your operation or multi-document transaction…

I have saas multitenant application. Every collection have tenantId to seprate data.
I’m worried this error will multiply as my client count increases.

2 Likes

By the way I use replica set on same host with three replica set to use transaction.

I am also facing same issue, doing transaction in sharded cluster(2 shards) and in one transaction updating only 3 documents.

1 Like