[SERVER-82460] Make $out behave the same in replicaset and sharded cluster when db does not exists Created: 26/Oct/23 Updated: 07/Nov/23 Resolved: 07/Nov/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Tommaso Tocci | Assignee: | Backlog - Query Execution |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||
| Assigned Teams: |
Query Execution
|
||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||
| Participants: | |||||||||||||||||||||
| Description |
|
On replicaset if we send an aggregation with a $out stage with a namespace for which the database haven't been created yet, the database will be created implicitly as part of the $out execution. On the other hand, if the same query is processed by a router in a sharded cluster, the aggregation will fail with NamesapceNotFound error. |
| Comments |
| Comment by Mickey Winters [ 07/Nov/23 ] |
|
Hi! I believe this is something I'm currently working on https://jira.mongodb.org/browse/SERVER-75856 |