[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
|