[JAVA-3721] Do not add the RetryableWriteError label to errors that occur during a write within a transaction (excepting commitTransaction and abortTransaction) Created: 04/May/20  Updated: 28/Oct/23  Resolved: 20/May/20

Status: Closed
Project: Java Driver
Component/s: Transaction Management
Affects Version/s: None
Fix Version/s: 4.1.0

Type: Improvement Priority: Major - P3
Reporter: Backlog - Core Eng Program Management Team Assignee: John Stewart (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Epic Link: Java MongoDB 4.4 Support

 Description   

The corresponding spec change clarifies the conditions under which the driver should add the RetryableWritesError label to errors within a transaction, and adds some transaction tests to ensure that the driver does not add the label to errors that occur on writes within a transaction.



 Comments   
Comment by Githook User [ 20/May/20 ]

Author:

{'name': 'John Stewart', 'email': 'john.stewart@mongodb.com', 'username': 'jstewart-mongo'}

Message: Add RetryableWriteError label when retryWrites=true

JAVA-3721
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a1b577319044205f550376e127f5c0108d915011

Comment by Jeffrey Yemin [ 16/May/20 ]

john.stewart looks like these tests are failing in some configurations: https://evergreen.mongodb.com/version/mongo_java_driver_a7fb5cffa6b1517e6e8bbcd7001d9a4f5a943d26

Comment by Githook User [ 13/May/20 ]

Author:

{'name': 'John Stewart', 'email': 'john.stewart@mongodb.com', 'username': 'jstewart-mongo'}

Message: Do not add the RetryableWriteError label to errors that occur during
a write within a transaction (excepting commitTransaction and
abortTransaction)

JAVA-3721
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/a7fb5cffa6b1517e6e8bbcd7001d9a4f5a943d26

Generated at Thu Feb 08 09:00:16 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.