[SERVER-32255] UUIDs may be absent from shard secondary local collections Created: 11/Dec/17  Updated: 30/Oct/23  Resolved: 05/Jan/18

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.6.0
Fix Version/s: 3.6.2, 3.7.1

Type: Bug Priority: Major - P3
Reporter: Kevin Albertson Assignee: Maria van Keulen
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: File added_secondary_no_uuid.js     Text File added_secondary_no_uuid.log    
Issue Links:
Backports
Depends
Related
is related to SERVER-31793 Add a hook to check that all collecti... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v3.6
Steps To Reproduce:

A slightly more detailed repro script and logs are attached, but the gist of it is the following:

// init with one shard with one node rs
var st = new ShardingTest({shards: 1, rs: {nodes: 1}, mongos: 1});
var mongos = st.s;
var rs = st.rs0;
 
// add a node to shard rs
var newNode = rs.add({'shardsvr': ''});
rs.reInitiate();
rs.awaitSecondaryNodes();

The new secondary has FCV=3.6, but local collections do not have UUIDs. Regular (non-local) collections do have the correct UUID however.

Per suggestions, the fix may just be not to skip shard servers here: https://github.com/mongodb/mongo/blob/r3.6.0/src/mongo/db/repl/initial_syncer.cpp#L1098-L1119

Sprint: Storage 2018-01-01, Storage 2018-01-15
Participants:
Linked BF Score: 0

 Description   

When a secondary is added to a shard replset with FCV=3.6, it does not generate UUIDs on the local database.



 Comments   
Comment by Githook User [ 05/Jan/18 ]

Author:

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

Message: SERVER-32255 Ensure UUIDs exist for local collections on ShardServers

(cherry picked from commit 2158ea8d6c84c9a68b50f76c9dd23b8a193b65f8)

Conflicts:
buildscripts/resmokeconfig/suites/sharding_last_stable_mongos_and_mixed_shards.yml
jstests/multiVersion/do_upgrade_downgrade.js
src/mongo/db/commands/validate.cpp
Branch: v3.6
https://github.com/mongodb/mongo/commit/489d177dbd0f0420a8ca04d39fd78d0a2c539420

Comment by Githook User [ 04/Jan/18 ]

Author:

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

Message: SERVER-32255 Ensure UUIDs exist for local collections on ShardServers
Branch: master
https://github.com/mongodb/mongo/commit/2158ea8d6c84c9a68b50f76c9dd23b8a193b65f8

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