[SERVER-76989] Improve cursor lifetime management in fle2_log_omit.js test Created: 10/May/23 Updated: 29/Oct/23 Resolved: 19/May/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 7.1.0-rc0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Mark Benvenuto | Assignee: | Mark Benvenuto |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||
| Backwards Compatibility: | Fully Compatible | ||||
| Operating System: | ALL | ||||
| Sprint: | Security 2023-05-29 | ||||
| Participants: | |||||
| Linked BF Score: | 31 | ||||
| Description |
|
A cursor is being opened by the test at https://github.com/10gen/mongo-enterprise-modules/blob/48a745f246021e6fc23d14b33b6b7d77e2a12e43/jstests/no_passthrough/fle2_log_omit.js#L324 and not being synchronously closed or exhausted. This means its lifetime is being left up the whims of the JS GC which may kill it at an undesired time and flood the log about killCursor commands being run. |