[SERVER-83472] Empty find cursor does not include atClusterTime Created: 20/Nov/23 Updated: 30/Jan/24 |
|
| Status: | Backlog |
| Project: | Core Server |
| Component/s: | Distributed Query Execution |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Kiro Morkos | Assignee: | Backlog - Query Execution |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | quick-tech-debt | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Query Execution
|
| Participants: |
| Description |
|
I noticed that if I perform a find operation that returns no results with snapshot read concern, an atClusterTime value is not returned on the cursor. This makes it difficult to perform multiple queries in the same snapshot if the first query happens to be empty. The aggregate command has the expected behavior and does return an atClusterTime value even if there's no results. This seems like an oversight with the find command. |