[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:
Duplicate
duplicates SERVER-75856 Support implicit database creation fo... In Code Review
Related
related to SERVER-82895 Complete TODO listed in SERVER-82460 Backlog
is related to SERVER-74998 Remove deprecated enable_sharding par... Closed
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

Generated at Thu Feb 08 06:49:19 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.