[SERVER-34600] getParameter for featureCompatibilityVersion on uninitialized replica set member causes crash on MongoDB 3.7.5 Created: 20/Apr/18  Updated: 29/Oct/23  Resolved: 23/Apr/18

Status: Closed
Project: Core Server
Component/s: Upgrade/Downgrade
Affects Version/s: 3.7.5
Fix Version/s: 3.7.6

Type: Bug Priority: Critical - P2
Reporter: Cailin Nelson Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: Text File mongod.log    
Issue Links:
Depends
Related
is related to SERVER-34601 dassert rather than invarianting when... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Storage NYC 2018-04-23
Participants:

 Description   

Trying to retrieve the featureCompatibilityVersion for an uninitialized replica set member on MongoDB 3.7.5 results in an invariant failure.

To reproduce:

  1. Start with a basic configuration for the first node of a replica set /usr/local/mongo375/bin/mongod --dbpath 375 --replSet foo --port 27000
  2. Connect to it and run db.runCommand({getParameter:1, featureCompatibilityVersion:1})
  3. Check mongod logs for invariant failures

2018-04-20T19:56:09.052+0000 F -        [conn1] Invariant failure isVersionInitialized() src/mongo/db/server_options.h 207

Full log attached.



 Comments   
Comment by Githook User [ 23/Apr/18 ]

Author:

{'email': 'maria@mongodb.com', 'username': 'mvankeulen94', 'name': 'Maria van Keulen'}

Message: SERVER-34600 uassert if using getParameter to read uninitialized fCV
Branch: master
https://github.com/mongodb/mongo/commit/5b40332d8d5cebdf47c43694bc5b9911841bde81

Comment by Eric Milkie [ 20/Apr/18 ]

I'd like to actually set the fixVersion to "3.7.6". Setting to 4.0.0-rc0 for now.

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