Uploaded image for project: 'MongoDB Shell'
  1. MongoDB Shell
  2. MONGOSH-1444

Sharding metadata consistency check command

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • No version
    • None
    • None
    • None

    Description

      Original Downstream Change Summary

      Adding a new command to check for cluster wide sharding metadata consistency

      Description of Linked Ticket

      Epic Summary

      Summary

      We need a command or aggregation that users (and Atlas) can run to check that the collection metadata (e.g. UUIDs) is consistent across all shards.

      Motivation

      In the last months we have seen an increasing number of HELP tickets with the same issue: there was a sharded collection that had different UUID across shards. Usually, this sharded collection had different UUIDs because at some point the customer performed some operations directly against the shards, without going through a mongos. Despite the fact that PM-2689 will disallow direct operations against the shards, we see value in adding a way to verify that the collection metadata of a sharded collection is consistent across shards.

      The reason why this issue is spotted since 5.0 is that on that version we introduced the renameCollection operation that verifies, before renaming the collection locally on a shard, that the local UUID matches the expected one.

      Documentation

      Product Description
      Scope Document
      Technical Design Document

      Attachments

        Activity

          People

            Unassigned Unassigned
            backlog-server-pm Backlog - Core Eng Program Management Team
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: