Drop config.placementHistory metadata in magic restore

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 8.1.0-rc0, 8.0.5
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • Fully Compatible
    • v8.0
    • Repl 2024-09-30, Repl 2024-10-14, Repl 2024-10-28
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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
              Reporter:
              Ali Mir
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: