[SERVER-50784] Must disable requireApiVersion after all fuzz tests Created: 07/Sep/20  Updated: 29/Oct/23  Resolved: 22/Sep/20

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.8.0

Type: Bug Priority: Major - P3
Reporter: A. Jesse Jiryu Davis Assignee: A. Jesse Jiryu Davis
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
related to SERVER-56925 Remove requireApiVersion server param... Closed
is related to SERVER-49887 requireApiVersion startup parameter Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 4

 Description   

If the JS test fuzzer happens to produce code that enables the "requireApiVersion" server parameter, then all test hooks' commands will fail because they don't pass an API version. For example, in jstestfuzz_replication_continuous_stepdown, if the fuzzer enables requireApiVersion, then the CheckReplDBHash hook will fail at the end of the test.

I fixed this for replica set tests in SERVER-49887 by disabling requireApiVersion in the FuzzerRestoreClusterSettings hook. I didn't notice that that hook only runs at the end of replica set tests, so standalone and sharding tests can still fail.

Let's rename FuzzerRestoreClusterSettings to FuzzerRestoreSettings and run it at the end of all fuzz tests that might enable requireApiVersion.



 Comments   
Comment by Githook User [ 22/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50784 Restore cluster settings after all JS test fuzzer suites, 2
Branch: master
https://github.com/mongodb/mongo/commit/00e6eaf6ab5c029784ee525d77b50ed93ce2c027

Comment by Githook User [ 08/Sep/20 ]

Author:

{'name': 'A. Jesse Jiryu Davis', 'email': 'jesse@mongodb.com', 'username': 'ajdavis'}

Message: SERVER-50784 Restore cluster settings after all JS test fuzzer suites
Branch: master
https://github.com/mongodb/mongo/commit/ec0866979a0749f6ee3a97b9932f73e6e21bf165

Generated at Thu Feb 08 05:23:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.