[GODRIVER-3031] Errors on retryable ops should indicate originating server when possible Created: 31/Oct/23  Updated: 22/Jan/24

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

Type: Spec Change Priority: Major - P3
Reporter: PM Bot Assignee: Unassigned
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Issue split
split from DRIVERS-2170 Errors on retryable ops should indica... Implementing
Related
is related to GODRIVER-2929 Improve error messaging by wrapping e... Backlog
Quarter: FY25Q1
Upstream Changes Summary:

DRIVERS-2170:
Summary of necessary driver changes

This only affects drivers that include server information (like the server name or address) in exceptions and error messages.

Any driver that includes server information in an exception or error message must ensure that the exception or message refers to the server that originated the error. For example, during a retry of a failed read or write, the original server must not simply be carried over to a subsequent error.

Documentation Changes Summary:

1. What would you like to communicate to the user about this feature?
2. Would you like the user to see examples of the syntax and/or executable code and its output?
3. Which versions of the driver/connector does this apply to?


 Description   

This ticket was split from DRIVERS-2170, please see that ticket for a detailed description.



 Comments   
Comment by Preston Vasquez [ 12/Jan/24 ]

Error type defined in the mongo package do not include information about the server in the Raw field, which is just a reference to the failing command.

Comment by Matt Dale [ 09/Jan/24 ]

A good way to accomplish this is to make two changes:

  1. Add selected server info to error messages
  2. Join all errors that happened while retrying into one error, which is in scope of GODRIVER-2929
Generated at Thu Feb 08 08:39:54 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.