[SERVER-36233] Prohibit running the "profile" command from secondary read override test suites. Created: 20/Jul/18  Updated: 29/Oct/23  Resolved: 09/Aug/18

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: 3.2.20
Fix Version/s: 4.1.2

Type: Bug Priority: Major - P3
Reporter: Robert Guo (Inactive) Assignee: Robert Guo (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0, v3.6, v3.4, v3.2
Sprint: TIG 2018-07-30, TIG 2018-08-13
Participants:
Linked BF Score: 5
Story Points: 2

 Description   

Running the profile command can cause system.profile to be created. Since system.profile is an unreplicated collection, there is no point in testing it in secondary read override test suites. It can also cause other tests to pick up the unreplicated collection and fail.

We should prevent the profile command from being run in the set_read_preference_secondary.js override file.



 Comments   
Comment by Githook User [ 09/Aug/18 ]

Author:

{'name': 'Robert Guo', 'email': 'robert.guo@10gen.com', 'username': 'guoyr'}

Message: SERVER-36233 prevent the profile command from being run on secondary read override suites
Branch: master
https://github.com/mongodb/mongo/commit/d88e328fe5cb0a9d2ac46173853102389f205e1e

Comment by Max Hirschhorn [ 20/Jul/18 ]

Maybe the jstests/core/dbhash.js test isn't the problem. Perhaps we should be banning tests which run the "profile" command as part of the set_read_preference_secondary.js function override? I think because I saw failures when working on SERVER-32691 manifest as "enabled profiling on the primary but tried to read it on the secondary" that I caught those cases by seeing if the command argument is the system.profile collection. We don't currently run any of the jstests/core/profile.js tests so I think banning the "profile" command in the secondary reads passthroughs even if the system.profile collection is strictly better.

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