Skip to content

Commit

Permalink
DRIVERS-2905 fix link to PoolClearedError
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinAlbs committed May 7, 2024
1 parent d3a355c commit 4fc1b58
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion source/retryable-reads/retryable-reads.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ An error is considered retryable if it meets any of the following criteria:
| NetworkTimeout | 89 |
| SocketException | 9001 |

- a [PoolClearedError](<>)
- a [PoolClearedError](../connection-monitoring-and-pooling/connection-monitoring-and-pooling.md#connection-pool-errors)
- Any of the above retryable errors that occur during a connection handshake (including the authentication step). For
example, a network error or ShutdownInProgress error encountered when running the hello or saslContinue commands.

Expand Down
7 changes: 4 additions & 3 deletions source/retryable-writes/retryable-writes.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,9 +176,10 @@ The RetryableWriteError label might be added to an error in a variety of ways:
MUST add a RetryableWriteError label to that error if the MongoClient performing the operation has the retryWrites
configuration option set to true.

- When a CMAP-compliant driver encounters a [PoolClearedError](<>) during connection check out, it MUST add a
RetryableWriteError label to that error if the MongoClient performing the operation has the retryWrites configuration
option set to true.
- When a CMAP-compliant driver encounters a
[PoolClearedError](../connection-monitoring-and-pooling/connection-monitoring-and-pooling.md#connection-pool-errors)
during connection check out, it MUST add a RetryableWriteError label to that error if the MongoClient performing the
operation has the retryWrites configuration option set to true.

- For server versions 4.4 and newer, the server will add a RetryableWriteError label to errors or server responses that
it considers retryable before returning them to the driver. As new server versions are released, the errors that are
Expand Down

0 comments on commit 4fc1b58

Please sign in to comment.