[CSHARP-3262] BulkInsert using C# and MongoDB Transactions throws WriteConflict error Created: 19/Nov/20 Updated: 20/Nov/20 Resolved: 20/Nov/20 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Supriya Bansal | Assignee: | Jeffrey Yemin |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Description |
|
Hello! Then I separated out the bulk operations to individual methods and used the session to commit the transaction. The behavior is very inconsistent. Sometimes the collection is created with the records and sometimes exception about WriteConcern is thrown. The Mongo connection string is for the Atlas Cluster with 1 primary and 2 replica nodes. Snippet of the code:
Can someone help me with this issue? |
| Comments |
| Comment by Jeffrey Yemin [ 20/Nov/20 ] |
|
OK, good luck! |
| Comment by Supriya Bansal [ 20/Nov/20 ] |
|
Thank you for the quick response! I had posted this question on the Mongo community but didn't receive any response. I will open a Support ticket for this issue.
|
| Comment by Jeffrey Yemin [ 20/Nov/20 ] |
|
Hi there, thank you for reaching out. As this sounds like a support issue, I wanted to give you some resources to get this questioned answered more quickly:
I also want to point out that this is not likely an issue with the driver itself, as it's just throwing an exception based on an error returned from the server. |