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

Ensure change stream cursors are closed in test runner helper

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3.0
    • Affects Version/s: None
    • Component/s: Test Coverage
    • None

      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.

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

              Created:
              Updated:
              Resolved: