[SERVER-54857] Re-examine disposal approach of the inner PlanExecutor of DocumentSourceCursor Created: 01/Mar/21 Updated: 06/Dec/22 Resolved: 08/Oct/21 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Querying |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Mindaugas Malinauskas | Assignee: | Backlog - Query Execution |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Assigned Teams: |
Query Execution
|
||||||||
| Participants: | |||||||||
| Description |
|
Re-examine disposal approach of the inner PlanExecutor of DocumentSourceCursor aggregation stage. Currently, for standard cursors, the inner PlanExecutor is disposed and destroyed on reaching an EOF. For tailable cursors, it is kept alive until higher level PlanExecutor is disposed. Keeping the PlanExecutor alive in all usage scenarios (whether disposed or not) is one of the alternatives to consider that could simplify the DocumentSourceCursor logic. |