Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-97891

Make CreateDatabase DDL persist database metadata in a shard-local replicated collection

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • Fully Compatible
    • CAR Team 2024-12-23, CAR Team 2025-01-06, CAR Team 2025-01-20, CAR Team 2025-02-03
    • 200

      The purpose of this ticket is to enable the CreateDatabase DDL to create and insert an entry for a shard-local replicated collection.

      The implementation aims for the CreateDatabase coordinator to send an update with the "upsert" option set to true to the new collection `config.shard.databases` from the primary shard of the database. This update will insert the database metadata locally while simultaneously inserting it into the `config.databases` collection from the config server. It is not necessary for these operations to be performed transactionally; we only need to ensure that they occur within the critical section.

            Assignee:
            pol.pinol@mongodb.com Pol Pinol
            Reporter:
            sulabh.mahajan@mongodb.com Sulabh Mahajan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: