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

Await replication after setting the featureCompatibilityVersion to 3.2 on the CSRS started by ShardingTest

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.15
    • Component/s: Querying
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      TIG 2016-10-10
    • Linked BF Score:
      0

      Description

      mongos uses the ReadPreference::Nearest read preference when initializing the config version on start-up. This leaves a window open where we've set the featureCompatibilityVersion to 3.2 on a majority of our config server nodes, but mongos chooses to read from a node that hasn't applied the update the admin.system.version collection and fails sees that the featureCompatibilityVersion is 3.4.

      We should update ShardingTest to await replication of the CSRS after setting the featureCompatibilityVersion of the CSRS to 3.2. This will ensure that mongos can connect to any of the nodes in the CSRS because they will all have featureCompatibilityVersion=3.2.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: