[GODRIVER-2673] Add the "TransientTransactionError" label when server selection fails during a transaction Created: 05/Dec/22  Updated: 05/Dec/22  Resolved: 05/Dec/22

Status: Closed
Project: Go Driver
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Unknown
Reporter: Matt Dale Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on GODRIVER-2579 Incorporate connection pool checkout ... Backlog
Duplicate
duplicates GODRIVER-2672 Comprehensively checking for transact... Closed

 Description   

Currently, the Go driver doesn't add the TransientTransactionError label to server selection errors that happen during a transaction, despite the transactions spec requiring it. That is currently complex to implement, but may be significantly simpler after GODRIVER-2579 is done.

Original comment from divjot.arora@mongodb.com:
Hey team, per the transactions spec, server selection errors should be marked with the TransientTransactionError label:

Any command error that includes the "TransientTransactionError" error label in the "errorLabels" field. Any network error or server selection error encountered running any command besides commitTransaction in a transaction. In the case of command errors, the server adds the label; in the case of network errors or server selection errors where the client receives no server reply, the client adds the label.



 Comments   
Comment by Matt Dale [ 05/Dec/22 ]

Duplicate of GODRIVER-2672.

Generated at Thu Feb 08 08:39:07 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.