[JAVA-4153] Ensure change stream cursors are closed in test runner helper Created: 12/May/21  Updated: 28/Oct/23  Resolved: 13/May/21

Status: Closed
Project: Java Driver
Component/s: Test Coverage
Affects Version/s: None
Fix Version/s: 4.3.0

Type: Improvement Priority: Unknown
Reporter: Jeffrey Yemin Assignee: Jeffrey Yemin
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified


 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.



 Comments   
Comment by Githook User [ 13/May/21 ]

Author:

{'name': 'Jeff Yemin', 'email': 'jeff.yemin@mongodb.com', 'username': 'jyemin'}

Message: Fix JsonPoweredCrudTestHelper (#709)

The change stream cursors were not being closed, which was
causing problems in downstream tests

JAVA-4153
Branch: master
https://github.com/mongodb/mongo-java-driver/commit/682d299fc8f36c16fca6328d96d33b6cb55a90b3

Generated at Thu Feb 08 09:01:22 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.