[SERVER-79236] Server cannot start in standalone if there are cluster parameters Created: 24/Jul/23  Updated: 29/Oct/23  Resolved: 09/Aug/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: 7.0.0-rc8
Fix Version/s: 7.1.0-rc0, 7.0.2

Type: Bug Priority: Major - P3
Reporter: Jordi Olivares Provencio Assignee: Marcos José Grillo Ramirez
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
is caused by SERVER-65249 Activate cluster parameters on standa... Closed
Assigned Teams:
Sharding EMEA
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v7.0
Steps To Reproduce:

Create a replica set, set a cluster parameter, then stop the replica set and start a single node in standalone.

Sprint: Sharding EMEA 2023-08-07, Sharding EMEA 2023-08-21
Participants:
Linked BF Score: 135

 Description   

In a replica set, if we set a cluster server parameter it gets stored in the durable collection config.clusterParameters.

If the node is then shut down and started back as a standalone the node won't be able to start since it will attempt to set the cluster parameter from the collection:

{"t":{"$date":"2023-07-24T10:42:34.527+00:00"},"s":"D1", "c":"ASSERT",   "id":23074,   "ctx":"initandlisten","msg":"User assertion","attr":{"error":"IllegalOperation: The 'changeStreamOptions' parameter is unsupported in standalone.","file":"src/mongo/idl/cluster_parameter_synchronization_helpers.cpp","line":68}}
{"t":{"$date":"2023-07-24T10:42:34.528+00:00"},"s":"D1", "c":"ASSERT",   "id":23074,   "ctx":"initandlisten","msg":"User assertion","attr":{"error":"OperationFailed: ","file":"src/mongo/idl/cluster_parameter_synchronization_helpers.h","line":128}}



 Comments   
Comment by Githook User [ 23/Aug/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-79236 Allow standalone instances to start with changeStreams and changeStreamOptions cluster parameters

(cherry picked from commit 0988763c57b9e96573c581537c7671f23d9fa256)
Branch: v7.0
https://github.com/mongodb/mongo/commit/02ec9f7212178932d16d11c607c87acce0888fcd

Comment by Githook User [ 09/Aug/23 ]

Author:

{'name': 'Marcos José Grillo Ramirez', 'email': 'marcos.grillo@mongodb.com', 'username': 'm4nti5'}

Message: SERVER-79236 Allow standalone instances to start with changeStreams and changeStreamOptions cluster parameters
Branch: master
https://github.com/mongodb/mongo/commit/0988763c57b9e96573c581537c7671f23d9fa256

Generated at Thu Feb 08 06:40:26 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.