-
Type: Bug
-
Resolution: Fixed
-
Priority: 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:
- The value of cwwcOnShard is w:1
- Before cwwcOnConfig is also set to w:1 here, the cwwc on the config server is changed to w:majority
- Then when the cwwcOnConfig is actually set, it is set to w:majority, resulting in this check to fail.