Skip to content

Commit 8ba332a

Browse files
authored
SPEC-1052 Clarify error handling during the process of killing the cursor
1 parent 65e5f50 commit 8ba332a

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

source/change-streams/change-streams.rst

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -514,7 +514,7 @@ When ``resumeAfter`` is specified the ``ChangeStream`` will return notifications
514514

515515
If the server supports sessions, the resume attempt MUST use the same session as the previous attempt's command.
516516

517-
A driver SHOULD attempt to kill the cursor on the server on which the cursor is opened during the resume process, and MUST NOT attempt to kill the cursor on any other server.
517+
A driver SHOULD attempt to kill the cursor on the server on which the cursor is opened during the resume process, and MUST NOT attempt to kill the cursor on any other server. Any exceptions or errors that occur during the process of killing the cursor should be suppressed, including both errors returned by the ``killCursor`` command and exceptions thrown by opening, writing to, or reading from the socket.
518518

519519

520520
Exposing All Resume Tokens
@@ -671,7 +671,7 @@ It was decided to remove this example from the specification for the following r
671671
What do the additional error codes mean?
672672
----------------------------------------
673673

674-
The `CursorKilled` or `Interrupted` error implies implies some other actor killed the cursor.
674+
The `CursorKilled` or `Interrupted` error implies some other actor killed the cursor.
675675

676676
The `CappedPositionLost` error implies falling off of the back of the oplog,
677677
so resuming is impossible.
@@ -768,3 +768,5 @@ Changelog
768768
+------------+------------------------------------------------------------+
769769
| 2018-11-06 | Added handling of ``postBatchResumeToken``. |
770770
+------------+------------------------------------------------------------+
771+
| 2019-01-10 | Clarified error handling for killing the cursor. |
772+
+------------+------------------------------------------------------------+

0 commit comments

Comments
 (0)