[SERVER-46365] getMore command before rs.initiate() can trip invariant Created: 24/Feb/20  Updated: 29/Oct/23  Resolved: 09/Mar/20

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 4.0.16
Fix Version/s: 4.0.17

Type: Bug Priority: Major - P3
Reporter: Justin Seyster Assignee: Justin Seyster
Resolution: Fixed Votes: 0
Labels: qexec-team
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Minor Change
Operating System: ALL
Sprint: Query 2020-03-23
Participants:
Case:

 Description   

In v4.0, every getMore command calls serverGlobalParams.featureCompatibility.getVersion() .

However, this check trips an invariant if there is no FCV document in place yet. First-time launch of a mongod in a replica set does not populate the FCV document. That doesn't happen until the call to rs.initiate(), which leaves a period of time during which any getMore command will crash the server.

The check was removed for v4.2, so this bug should not occur in future releases.



 Comments   
Comment by Githook User [ 09/Mar/20 ]

Author:

{'name': 'Justin Seyster', 'username': 'jseyster', 'email': 'justin.seyster@mongodb.com'}

Message: SERVER-46365 Do not trip invariant on FCV check in getMore
Branch: v4.0
https://github.com/mongodb/mongo/commit/0bc918c73390f6e4d6349660e4cd233f5900b69a

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