[SERVER-57557] [v4.4] Support running checkFCV() shell helper with mongos connection Created: 09/Jun/21  Updated: 29/Oct/23  Resolved: 10/Jun/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.2.18, 4.4.7

Type: Task Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: sharding-wfbf-day
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Related
related to SERVER-59158 Support running checkFCV() shell help... Closed
is related to SERVER-51333 setFeatureCompatibilityVersion should... Closed
is related to SERVER-53359 jstestfuzz (mutational) fuzzer is for... Closed
is related to SERVER-56961 [v4.4] Ensure cluster is in FCV 4.4 w... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2
Sprint: Sharding 2021-06-14
Participants:
Linked BF Score: 45

 Description   

The changes from c0142cd as part of SERVER-56961 made it so the FuzzerRestoreClusterSettings hook first restores the feature compatibility version to latestFCV. When a previous upgrade or downgrade was interrupted, the setFeatureCompatibilityVersion command is run to finish the FCV upgrade or downgrade and then the featureCompatibilityVersion server parameter and document is read to affirm the FCV upgrade or downgrade completed successfully. mongos doesn't report a featureCompatibilityVersion server parameter and so the withFCV() function throws in this case.

https://github.com/mongodb/mongo/blob/e92664940640287874bf6d08940df26fee7bc2b8/jstests/libs/with_fcv.js#L74



 Comments   
Comment by Githook User [ 21/Oct/21 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-57557 Skip FCV server parameter check in checkFCV() for mongos.

(cherry picked from commit f830b5201069f86d1e638f9dcd3294b799e5dfb4)
Branch: v4.2
https://github.com/mongodb/mongo/commit/5500c2b6e8a0fad7e779d003feb0d3c9f92f1c77

Comment by Githook User [ 10/Jun/21 ]

Author:

{'name': 'Max Hirschhorn', 'email': 'max.hirschhorn@mongodb.com', 'username': 'visemet'}

Message: SERVER-57557 Skip FCV server parameter check in checkFCV() for mongos.
Branch: v4.4
https://github.com/mongodb/mongo/commit/f830b5201069f86d1e638f9dcd3294b799e5dfb4

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