Closing a change stream without reading it returns an error

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: 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
    • None
    • Fully Compatible
    • None
    • None
    • None
    • None
    • None
    • None

      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 (Inactive)
              Reporter:
              Pierre Durand
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: