Skip to content

Commit

Permalink
simplify the paragraph
Browse files Browse the repository at this point in the history
  • Loading branch information
jamis committed Dec 15, 2023
1 parent 686f8e6 commit 2dccf6f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
7 changes: 2 additions & 5 deletions source/retryable-reads/retryable-reads.rst
Original file line number Diff line number Diff line change
Expand Up @@ -332,11 +332,8 @@ the caller can infer that an attempt was made and the second error is likely
more relevant (with respect to the current topology state).

If a driver associates server information (e.g. the server address or
description) with an error, the driver MUST ensure the server information
reported with that error corresponds to the server that was selected when the
error occurred. Specifically, if a retry attempt fails, the server reported
with the error MUST correspond to the server that was selected for the retry
and MUST NOT simply be carried over from the original error.
description) with an error, the driver MUST ensure that the reported server
information corresponds to the server that originated the error.

4. Implementation constraints
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
Expand Down
7 changes: 2 additions & 5 deletions source/retryable-writes/retryable-writes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -412,11 +412,8 @@ the previous attempt should be raised. If all server errors are labeled
"NoWritesPerformed", then the first error should be raised.

If a driver associates server information (e.g. the server address or
description) with an error, the driver MUST ensure the server information
reported with that error corresponds to the server that was selected when the
error occurred. Specifically, if a retry attempt fails, the server reported
with the error MUST correspond to the server that was selected for the retry
and MUST NOT simply be carried over from the original error.
description) with an error, the driver MUST ensure that the reported server
information corresponds to the server that originated the error.

The above rules are implemented in the following pseudo-code:

Expand Down

0 comments on commit 2dccf6f

Please sign in to comment.