[SERVER-52778] Add markers for all places where collections are implicitly created on a Shard Created: 11/Nov/20  Updated: 29/Oct/23  Resolved: 19/Mar/21

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

Type: Task Priority: Major - P3
Reporter: Kaloian Manassiev Assignee: Kaloian Manassiev
Resolution: Fixed Votes: 0
Labels: PM-1965-Milestone-0
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
depends on SERVER-55181 NamespaceString::isNamespaceAlwaysUns... Closed
depends on SERVER-52616 Create the _shardsvrCreateCollection ... Closed
depends on SERVER-52812 Implement the enableSharding/implicit... Closed
Related
related to SERVER-55362 Complete TODO listed in SERVER-52778 Closed
related to SERVER-55284 Get rid of the ScopedAllowImplicitCol... Closed
Backwards Compatibility: Fully Compatible
Sprint: Sharding 2021-03-22
Participants:

 Description   

As part of the current project, we are going in the direction where all DDL in a Sharded cluster needs to be tracked and serialsed via a coordinator on the DB Primary. However, implicit collection creation of unsharded collections bypasses that synchronisation and goes directly to the storage engine to create the collection. This ticket is to identify all these places and to add a temporary ScopedAllowImplicitCollectionCreate_UNSAFE RAII instance, so that no new places pop-up.

In the dependent tickets we will gradually remove these RAII instances and make implicit collection creation go through the _shardsvrCreateCollection path.



 Comments   
Comment by Githook User [ 18/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52778 Remove vestiges of the now-unused 'allowImplicitCollectionCreation' field
Branch: master
https://github.com/mongodb/mongo/commit/e16dbf0d24cbf1480469417098405f39daa0ebac

Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52778 Mark all places where collections are implicitly created in sharding
Branch: master
https://github.com/mongodb/mongo/commit/e3b9f422e0977417f97821e53e436b3692d6037f

Comment by Githook User [ 17/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52778 Cleanup the legacy shardCollection code path
Branch: master
https://github.com/mongodb/mongo/commit/2250938b17331942db77d40dbae2e25c23e57c2c

Comment by Githook User [ 04/Mar/21 ]

Author:

{'name': 'Kaloian Manassiev', 'email': 'kaloian.manassiev@mongodb.com', 'username': 'kaloianm'}

Message: SERVER-52778 Remove unused 'allowImplictCollectionCreate' from the router
Branch: master
https://github.com/mongodb/mongo/commit/0d8114dacb5a2e19d6208ae4770a3b3d2864662d

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