[CSHARP-2287] RetryWrites=true in a transaction throws exception when using async writes Created: 04/Jun/18 Updated: 28/Oct/23 Resolved: 25/Jun/18 |
|
| Status: | Closed |
| Project: | C# Driver |
| Component/s: | None |
| Affects Version/s: | 2.7.0 |
| Fix Version/s: | 2.7.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mohammed Abdel Gader Ibrahim ElAmin [X] | Assignee: | Robert Stam |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
Windows 10 64-bit, MongoDB 4.0.0-rc1, .NET Core 2.1 |
||
| Epic Link: | CSHARP MongoDB 4.0 Support |
| Description |
|
I am using the C# driver 2.7.0-beta0001 and MongoDB 4.0.0-rc1 server and I am trying to update multiple documents on a single replica set server using the new transaction feature and I always get an exception:
Here is my code:
|
| Comments |
| Comment by Githook User [ 25/Jun/18 ] | ||||||||||
|
Author: {'username': 'rstam', 'name': 'rstam', 'email': 'robert@robertstam.org'}Message: | ||||||||||
| Comment by Robert Stam [ 13/Jun/18 ] | ||||||||||
|
Good to know. That should make it easy to reproduce. Thanks for the update. | ||||||||||
| Comment by Mohammed Abdel Gader Ibrahim ElAmin [X] [ 13/Jun/18 ] | ||||||||||
|
By removing the RetryWrites from MongoClientSettings the issue doesn't occur.
| ||||||||||
| Comment by Mohammed Abdel Gader Ibrahim ElAmin [X] [ 09/Jun/18 ] | ||||||||||
|
Here is the rest of the code I used to initialize the client.
| ||||||||||
| Comment by Robert Stam [ 06/Jun/18 ] | ||||||||||
|
I have so far been unable to reproduce this. Can you share your connection string with me? (replace any confidential information with "xyz"). |