-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
-
Cluster Scalability
-
Fully Compatible
-
ALL
-
Cluster Scalability 2024-12-23
-
0
The background hook for analyzeShardKey calls a findOne on the collection to get a random document from which a random shard key to be analyzed is generated from. It's possible for this find throws a queryPlanKilled error if the collection was dropped in between the time of getting the collection and sending the find(see BF-36026).
Wrap the findOne in a try/catch condition and return early if queryPlanKilled is thrown.