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

Make ShardingTest wait for the config shard's config.shards entry to be updated on setup

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.3.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Sharding NYC
    • Fully Compatible
    • ALL
    • v7.2
    • Cluster Scalability 2023-11-13, Cluster Scalability 2023-11-27, Cluster Scalability 2023-12-11
    • 35

      With auto-bootstrapping, it is not guaranteed that once `new ShardingTest` returns, the host field for the config shard's shard entry will contain all of the members of the replica set.

      This is because with auto-bootstrapping, the host field will initially only contain the auto-bootstrapped node. The shard entry will only get updated to contain all of the nodes in the replica set when a mongos notices the config server replica set's other members (which can happen after `new ShardingTest` returns).

      This is not a issue without auto-bootstrapping because the config shard is only created after the user has fully initiated their replica set. 

            Assignee:
            wenqin.ye@mongodb.com Wenqin Ye
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: