[SERVER-34715] Fix log_format_slowms_samplerate_loglevel.js by ensuring that the query planner always chooses the same plan Created: 27/Apr/18  Updated: 29/Oct/23  Resolved: 30/Apr/18

Status: Closed
Project: Core Server
Component/s: Internal Code, Testing Infrastructure
Affects Version/s: 3.7.8
Fix Version/s: 4.0.0-rc0

Type: Bug Priority: Major - P3
Reporter: Bernard Gorman Assignee: Bernard Gorman
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Query 2018-05-07
Participants:
Linked BF Score: 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.



 Comments   
Comment by Githook User [ 01/May/18 ]

Author:

{'email': 'bernard.gorman@gmail.com', 'name': 'Bernard Gorman', 'username': 'gormanb'}

Message: SERVER-34715 Fix log_format_slowms_samplerate_loglevel.js by ensuring that the query planner always chooses the expected plan
Branch: master
https://github.com/mongodb/mongo/commit/c68c5f493b042350f61dff7aaa32aa2e3e6d651e

Comment by Githook User [ 30/Apr/18 ]

Author:

{'email': 'bernard.gorman@gmail.com', 'username': 'gormanb', 'name': 'Bernard Gorman'}

Message: SERVER-34715 Fix log_format_slowms_samplerate_loglevel.js by ensuring that the query planner always chooses the expected plan
Branch: master
https://github.com/mongodb/mongo/commit/c68c5f493b042350f61dff7aaa32aa2e3e6d651e

Generated at Thu Feb 08 04:37:35 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.