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

Ensure change stream cursors are closed in test runner helper

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Unknown Unknown
    • 4.3.0
    • None
    • Test Coverage
    • None

    Description

      In JsonPoweredCrudTestHelper there are methods that create change stream cursors but don't close them. When used by the reactive driver, those cursors may continue to be active even after the test that created them is over, and they can interfere with subsequent tests that create failpoints for getMore commands.

      Simple fix is to close the cursors so that they stop executing getMore commands.

      Attachments

        Activity

          People

            jeff.yemin@mongodb.com Jeffrey Yemin
            jeff.yemin@mongodb.com Jeffrey Yemin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: