[SERVER-31791] UUIDs should be added to local collections for replica sets only on clean startup Created: 01/Nov/17  Updated: 30/Oct/23  Resolved: 21/Nov/17

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 3.6.1, 3.7.1

Type: Bug Priority: Major - P3
Reporter: Maria van Keulen Assignee: Xiangyu Yao (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Sprint: Storage 2017-12-04
Participants:
Linked BF Score: 0

 Description   

Presently, we add UUIDs to non-replicated collections as part of ReplicationCoordinatorExternalStateImpl::initializeReplSetStorage. However, adding UUIDs is only necessary for replica sets started with no data files. The UUID generation should be moved to FeatureCompatibilityVersion::setIfCleanStartup.



 Comments   
Comment by Githook User [ 08/Dec/17 ]

Author:

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

Message: SERVER-31791 Tag JS test with requires_persistence.

The initiate_replset_on_downgraded_standalone_node.js test restarts a
stand-alone mongod as a replica set member and therefore shouldn't be
run against the ephemeralForTest or inMemory storage engines.

(cherry picked from commit 3d220241064ca7a305b5ab60d72dc2ed4307d545)
Branch: v3.6
https://github.com/mongodb/mongo/commit/a75ff14a9646cf8f7d2959aff59d62b7f87c8906

Comment by Githook User [ 08/Dec/17 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-31791 UUIDs should be added to local collections for replica sets only on
clean startup

(cherry picked from commit 7bfb336f59febbaabb4735dfda49b490e6d98792)
Branch: v3.6
https://github.com/mongodb/mongo/commit/d87b7870eb13068f354438f2054f8bf126912f29

Comment by Githook User [ 25/Nov/17 ]

Author:

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

Message: SERVER-31791 Tag JS test with requires_persistence.

The initiate_replset_on_downgraded_standalone_node.js test restarts a
stand-alone mongod as a replica set member and therefore shouldn't be
run against the ephemeralForTest or inMemory storage engines.
Branch: master
https://github.com/mongodb/mongo/commit/3d220241064ca7a305b5ab60d72dc2ed4307d545

Comment by Githook User [ 21/Nov/17 ]

Author:

{'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}

Message: SERVER-31791 UUIDs should be added to local collections for replica sets only on
clean startup
Branch: master
https://github.com/mongodb/mongo/commit/7bfb336f59febbaabb4735dfda49b490e6d98792

Comment by Xiangyu Yao (Inactive) [ 15/Nov/17 ]

Just a reminder for myself: I am going to create a test for this but it needs to be removed in the master branch because it's 3.4->3.6 upgrade specific. However it needs to be back-ported to the 3.6 branch.

Comment by Esha Maharishi (Inactive) [ 01/Nov/17 ]

This is relevant if a standalone server is started up and setFCV=3.4 is called on it, then it is restarted as a replica set.

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