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

Start up replica set with all nodes when running with config shard

    • Type: Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: 8.1.0-rc0, 8.0.0
    • Component/s: None
    • None
    • Catalog and Routing
    • ALL
    • Hide

      Run the attached repro in the sharding_jscore_passthrough and we will run the entire shardCollection operation on the primary without waiting for any catch up on the secondary.

      Show
      Run the attached repro in the sharding_jscore_passthrough and we will run the entire shardCollection operation on the primary without waiting for any catch up on the secondary.
    • 0

      In our testing, we start up replica sets initially with one node and then add more nodes to the replica set later (comments in the code say this is for faster elections). When a config server is using auto bootstrap, this means we can end up with a single shard sharded cluster with one node for a while before we add more nodes to it.

      This can end up with a scenario where we begin creating the sessions collection when there is one node in the replica set and so use w:1 for that operation despite a second node being added during the shard collection command. As a temporary solution to prevent this, we should just create embedded config server replica sets all at once, rather than adding nodes to them later.

            Assignee:
            Unassigned Unassigned
            Reporter:
            allison.easton@mongodb.com Allison Easton
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: