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

UUIDs may be absent from shard secondary local collections

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.6.0
    • 3.6.2, 3.7.1
    • Sharding
    • 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

    Description

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

      Attachments

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

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: