[SERVER-42430] Create whitelist of namespaces that are allowed to be created implicitly on shards Created: 25/Jul/19  Updated: 29/Oct/23  Resolved: 19/Aug/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
is depended on by SERVER-42379 Audit for where an unsharded collecti... Closed
Related
related to SERVER-43198 Zombie writes from failing $merge sho... Backlog
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2019-08-12, Sharding 2019-08-26
Participants:

 Description   

Currently we implicitly create an unsharded collection on the following paths:

  1. aggregation
  2. renameCollection
  3. convertToCapped
  4. mapReduce
  5. moveChunk (on the recipient when receiving the first chunk for a collection)
  6. movePrimary (on the recipient)

We want disallow implicit collection creation for all namespaces that are not any of:

  1. temp collections
  2. collections on the config server
  3. local/admin collections
  4. system.profile

If a namespace does not fall into any of these categories, we should throw CannotImplicitlyCreateCollection.



 Comments   
Comment by Githook User [ 19/Aug/19 ]

Author:

{'email': 'janna.golden@mongodb.com', 'name': 'Janna Golden'}

Message: SERVER-42430 Create whitelist of namespaces that are allowed to be created implicitly on shards
Branch: master
https://github.com/mongodb/mongo/commit/c8cfa4b83600cd10a70529e05fe626482bb5b65a

Comment by Janna Golden [ 30/Jul/19 ]

kaloian.manassiev yeah exactly

Comment by Kaloian Manassiev [ 29/Jul/19 ]

Does this plus temp collections cover this requirement?

Generated at Thu Feb 08 05:00:28 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.