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

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

      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.

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

              Created:
              Updated:
              Resolved: