[CSHARP-3269] Write operations do not include error labels from underlying exception Created: 26/Nov/20  Updated: 28/Oct/23  Resolved: 22/Dec/20

Status: Closed
Project: C# Driver
Component/s: Error Handling
Affects Version/s: None
Fix Version/s: 2.12.0

Type: Bug Priority: Major - P3
Reporter: Mikalai Mazurenka (Inactive) Assignee: Mikalai Mazurenka (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 Description   

When handling exception from batch result (BulkUnmixedWriteOperationBase.ExecuteBatch) error labels are omitted (only exception.Result is used to form an exception, while exception.ErrorLabels property is excluded).
This affects test InsertOne fails after multiple retryable writeConcernErrors.



 Comments   
Comment by Githook User [ 22/Dec/20 ]

Author:

{'name': 'Mikalai Mazurenka', 'email': 'mikalai.mazurenka@mongodb.com', 'username': 'MikalaiMazurenka'}

Message: CSHARP-3269: Write operations do not include error labels from underlying exception
Branch: master
https://github.com/mongodb/mongo-csharp-driver/commit/f15f7bb485e2635169432e444d4386756e5f6dc5

Generated at Wed Feb 07 21:44:51 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.