-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Fully Compatible
-
ALL
-
v4.4, v4.2, v4.0
-
Sharding 2020-03-23
-
(copied to CRM)
See https://gist.github.com/alexbevi/dc51c0ce4820f46e46feca06dbdc64bb for repro details.
As getShardDistribution relies on the results of the collStats command, if the underlying command fails getShardDistribution can incorrectly report that the "Collection is not sharded". This command should use the $collStats agg stage to prevent the problem described in SERVER-44891.
- is caused by
-
SERVER-44891 collStats will fail if resulting BSON size > 16MB
- Closed
- is related to
-
SERVER-44051 getShardDistribution() does not report "Collection XYZ is not sharded" on dropped but previously sharded collections
- Closed