Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-32255

UUIDs may be absent from shard secondary local collections

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.6.2, 3.7.1
    • Affects Version/s: 3.6.0
    • Component/s: Sharding
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v3.6
    • Hide

      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

      Show
      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
    • Storage 2018-01-01, Storage 2018-01-15
    • 0

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

        1. added_secondary_no_uuid.js
          1 kB
        2. added_secondary_no_uuid.log
          445 kB

            Assignee:
            maria.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            kevin.albertson@mongodb.com Kevin Albertson
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: