[SERVER-59158] Support running checkFCV() shell helper with mongos connection Created: 06/Aug/21  Updated: 29/Oct/23  Resolved: 06/Aug/21

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 5.0.3, 5.1.0-rc0

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
is related to SERVER-57557 [v4.4] Support running checkFCV() she... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v5.0
Sprint: Sharding 2021-08-09
Participants:
Linked BF Score: 37

 Description   

When a previous upgrade or downgrade was interrupted, the jstests/hooks/run_validate_collections.js hook runs the setFeatureCompatibilityVersion command is run to finish the FCV upgrade or downgrade. The featureCompatibilityVersion server parameter and document is then read to affirm the FCV upgrade or downgrade completed successfully. mongos doesn't report a featureCompatibilityVersion server parameter and so the checkFCV() function throws in this case.

https://github.com/mongodb/mongo/blob/f0c31b47ed99ef7ff11e79180205b50e439234a8/jstests/hooks/run_validate_collections.js#L69



 Comments   
Comment by Vivian Ge (Inactive) [ 06/Oct/21 ]

Updating the fixversion since branching activities occurred yesterday. This ticket will be in rc0 when it’s been triggered. For more active release information, please keep an eye on #server-release. Thank you!

Comment by Githook User [ 06/Aug/21 ]

Author:

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

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

(cherry picked from commit 3f1695a90ae84726d560e02fb88b1521cde351d6)
Branch: v5.0
https://github.com/mongodb/mongo/commit/0cf4776112bb288f3606c0e99c01595b202a826e

Comment by Githook User [ 06/Aug/21 ]

Author:

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

Message: SERVER-59158 Skip FCV server parameter check in checkFCV() for mongos.
Branch: master
https://github.com/mongodb/mongo/commit/3f1695a90ae84726d560e02fb88b1521cde351d6

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