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

Add shard ID consistency check in magic restore targeted tests

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication

      When testing shard renames in magic restore, we check that metadata collections that refer to the old shard ID have correctly been updated to refer to the new shard name. However, these checks only look at known shard ID references that are modified in the restore procedure.

      We need a way to catch any new sharding metadata referring to shard IDs. To do so, we should introduce a "shard ID consistency check" to the magic restore test utility file. A solution we brainstormed was to iterate through all documents in the config, admin, local databases that have some field name that match *shardId. We could also hardcode the fieldnames to look out for. Neither of these solutions are perfect, but they'll provide some guardrails until we come up with a better solution.

            Assignee:
            Unassigned Unassigned
            Reporter:
            ali.mir@mongodb.com Ali Mir
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: