Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-1394

Close ChangeStream cursor when the resume token is missing.

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6
    • Affects Version/s: None
    • Component/s: API
    • Labels:
      None

      ChangeStreams raise an error when the resume token is not found in the current change document however, the underlying cursor is left open.

      We should close the cursor before raising an error here: https://github.com/mongodb/mongo-python-driver/blob/fdf4436201065e77a3d67c7c3d92be721bc7e20e/pymongo/change_stream.py#L116

      Thanks emily.stolfo for pointing this out.

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: