Details
-
Bug
-
Resolution: Fixed
-
Major - P3
-
3.7.8
-
None
-
Fully Compatible
-
ALL
-
Query 2018-05-07
-
46
Description
The log_format_slowms_samplerate_loglevel.js in the noPassthrough suite is consistently failing on certain variants. This is because the test exercises both mongoD and mongoS logging in a sharded cluster, and on these particular variants queries favour the _id:1 index over the _id:hashed index on which the collection is sharded.
Fix this by sharding the cluster on _id:1 to ensure that the planner always chooses the expected index.