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

Add test to validate shard split resets the replicaSetId

    XMLWordPrintableJSON

Details

    • Icon: Task Task
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 6.2.0-rc0
    • None
    • None
    • Fully Compatible
    • Server Serverless 2022-11-14

    Description

      We resets the replica set id to ensure the recipient and donor config do not have the same replicaSetId. We have a test to ensure the utility function resets the ID, but we don't validate shard split itself does. If shard split stops using the utility function, we could conceivably stop resetting the ID without noticing it. We should add a check (in an existing unit test) to verify the replicaSetId is reset.

      We should also remove shard_split_apply_splitconfig.js as it was meant to test application of the split config (and recipient nodes leaving the set when that happens) before the full shard split worked. This is now down as part of split so the test is not really relevant anymore.

      Attachments

        Activity

          People

            didier.nadeau@mongodb.com Didier Nadeau
            didier.nadeau@mongodb.com Didier Nadeau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: