Uploaded image for project: 'Go Driver'
  1. Go Driver
  2. GODRIVER-1238

Closing a change stream without reading it returns an error

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.1.1
    • Affects Version/s: 1.1.0
    • Component/s: CRUD
    • None
    • Environment:
      Go 1.13beta1
      MongoDB 4.2
      Go MongoDB driver 1.1.0
    • Fully Compatible

      See the attached code.

      If you close a change stream without reading it, it returns the error "ended session was used".

      It happens only since v1.1.0. I can't reproduce it with v1.0.4

        1. csclose.go
          0.4 kB
          Pierre Durand

            Assignee:
            isabella.siu@mongodb.com Isabella Siu (Inactive)
            Reporter:
            pierrre Pierre Durand
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: