ChangeStream Publisher's cursor does not closed after .cancel()

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Duplicate
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • None
    • Environment:
      MongoDB 4.0.12, org.mongodb:mongodb-driver-reactivestreams:4.0.5
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      We start a Change Stream Publisher on a collection.

      Do not execute any operation on this collection at that time.

      The AsyncChangeStreamBatchCursor would call getMore command every second.

      Now we invoke subscription.cancel() method.

      The AsyncChangeStreamBatchCursor should be closed, but it doesn't.

      The property isOperationInProgress == true , isClosePending == true and the Cursor continue in getMore loop, never closed.

       

              Assignee:
              Ross Lawley
              Reporter:
              Ricky Chen
              None
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: