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

Make `checkMetadataConsistency` also compares the shard-local catalog with the shard-local catalog cache (DSS) explicitly

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • CAR Team 2025-03-17

      Currently, `checkMetadataConsistency` performs the following comparisons:

      1. Global catalog vs. shard-local catalog (config.shard.databases)
      2. Global catalog vs. shard-local catalog cache (DSS)

      Since we have guarantees that the snapshot of the global catalog does not change and we have a DDL lock, we can conclude that the shard-local catalog is equivalent to the DSS. However, we would like to perform this explicit comparison to provide more information to the customer in the event of any inconsistencies. This way, they will know which of the three sources is incorrect.

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

              Created:
              Updated: