[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: |
|
||||||||||||
| 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: The initiate_replset_on_downgraded_standalone_node.js test restarts a (cherry picked from commit 3d220241064ca7a305b5ab60d72dc2ed4307d545) |
| Comment by Githook User [ 08/Dec/17 ] |
|
Author: {'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}Message: (cherry picked from commit 7bfb336f59febbaabb4735dfda49b490e6d98792) |
| Comment by Githook User [ 25/Nov/17 ] |
|
Author: {'name': 'Max Hirschhorn', 'username': 'visemet', 'email': 'max.hirschhorn@mongodb.com'}Message: The initiate_replset_on_downgraded_standalone_node.js test restarts a |
| Comment by Githook User [ 21/Nov/17 ] |
|
Author: {'name': 'Xiangyu Yao', 'username': 'xy24', 'email': 'xiangyu.yao@mongodb.com'}Message: |
| 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. |