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

Drop config.placementHistory metadata in magic restore

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Repl 2024-09-30, Repl 2024-10-14, Repl 2024-10-28

      We need to drop the config.placementHistory collection on the config server while modifying shard metadata, insert a single document and run the resetPlacementHistory command. The document should have the following shape:

      {
      _id: <OID>, // auto-generated 
      nss: string, // references db or collection
      timestamp: Timestamp, // must strictly relate to the cluster time of the destination cluster
      shards: array<ShardId> // may be empty
      uuid: UUID // may be missing
      }
      

      We should unit test this, and I believe we should get test coverage in jstests with SERVER -90317.

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

              Created:
              Updated: