[SERVER-85515] The config.databases namespace should be created upon config server initialisation. Created: 22/Jan/24  Updated: 23/Jan/24  Resolved: 23/Jan/24

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 7.3.0-rc0

Type: Bug Priority: Major - P3
Reporter: Paolo Polato Assignee: Paolo Polato
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: CAR Team 2024-01-22, CAR Team 2024-02-05
Participants:
Linked BF Score: 147

 Description   

As part of its self initialisation, the config server primary runs a function to ensure that collections under the config database are instantiated with the expected indexes, so that regular operations can later execute as expected.

Such a function does not currently include the config.databases namespace, which is instead lazily created while serving the first user createDatabase request.

This ticket aims to implement a consistent initialisation for all the collections belonging to the sharding catalog.



 Comments   
Comment by Githook User [ 23/Jan/24 ]

Author:

{'name': 'ppolato', 'email': '82828243+ppolato@users.noreply.github.com', 'username': 'ppolato'}

Message: SERVER-85515 Explicitly create config.databases on config server initialization (#18215)

GitOrigin-RevId: 6778455519a9bcf479ff3ed94c24d28fe67b31d6
Branch: master
https://github.com/mongodb/mongo/commit/1e24b8200e5f524814faafaa6849e61f50c37b72

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