Uploaded image for project: 'Java Driver'
  1. Java Driver
  2. JAVA-3850

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

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • MongoDB 4.0.12, org.mongodb:mongodb-driver-reactivestreams:4.0.5

    Description

      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.

       

      Attachments

        Activity

          People

            ross@mongodb.com Ross Lawley
            a471558277@gmail.com Ricky Chen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: