Files
documentdb/internal/pg_documentdb_distributed
Vinod Sridharan a97a0d9932 Merged PR 1562355: [BugFix] Fix cleaning cursors that are left behind
### Does this PR have any customer impact?
No

### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc)
Bugfix

### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes)
No
### Are you introducing any new config? If yes, do you have tests with and without them being set?

### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md))

### Description
Cleaning up dirty cursors left behind from abandoned cursors

----
#### AI description  (iteration 1)
#### PR Classification
Bug fix

#### PR Summary
This pull request addresses an issue with cleaning up cursors that are left behind in the system.
- `cursors.c`: Added logic to close open held portals and clean up cursor state to prevent reuse of old cursors.
- `bson_aggregation_cursor_tests.out` and `bson_aggregation_cursor_tests.sql`: Added tests to verify the new cursor cleanup behavior.
- `bson_aggregation_stage_out_tests_2.out`: Updated expected test outputs to reflect the new cursor cleanup notices.
2025-01-30 10:35:08 -08:00
..