-
Type: Improvement
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: 3.6.11, 4.0.9, 4.1.7
-
Component/s: Sharding
-
None
If getNumShards() returns before the shard registry is populated, it's possible that it can incorrectly return that zero shards exist.
This function is only used in one place.
This ticket is simply to either:
- Remove this function and replace with getAllShardIds(), which does do a reload, or:
- Add a reload inside getNumShards() if the number turns out to be zero.
- is related to
-
SERVER-54230 Stop returning sorted shard IDs vector from ShardRegistry
- Closed