Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-2821

Change stream cursor does not resume when attempt to kill the existing cursor fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.4, 3.7.0
    • Component/s: Query Operations
    • Labels:
      None

      Description

      The change stream specification test plan says:

      The killCursors command sent during the “Resume Process” must not be allowed to throw an exception

      This was not properly implemented in the driver. In particular, if the attempt to get a connection on which to send the killCursors commands results in a ConnectException, then that exception will be thrown instead of being suppressed. As a result, if the attempt to kill the cursor fails (as when the server with the cursor is shut down) then the driver will not properly resume the change stream cursor and instead throw the exception.

        Attachments

          Activity

            People

            Assignee:
            jeff.yemin Jeffrey Yemin
            Reporter:
            jeff.yemin Jeffrey Yemin
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: