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

Skip CWWC check when adding config shard

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Query Optimization
    • Fully Compatible
    • ALL
    • v8.0, v7.3, v7.0, v6.0
    • 0

      If a config shard is being added (i.e the shard id == "config"), then this check that the CWWC on the shard equals the CWWC on the config can be skipped. The check is redundant because they are the same for a config shard.

      Leaving the check in for a config shard can also result in the following race condition:

      1. The value of cwwcOnShard is w:1
      2. Before cwwcOnConfig is also set to w:1 here, the cwwc on the config server is changed to w:majority 
      3. Then when the cwwcOnConfig is actually set, it is set to w:majority, resulting in this check to fail. 

       

            Assignee:
            alya.berciu@mongodb.com Alya Berciu
            Reporter:
            wenqin.ye@mongodb.com Wenqin Ye
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: