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

UUIDs may be absent from shard secondary local collections

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.6.0
    • Fix Version/s: 3.6.2, 3.7.1
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v3.6
    • Steps To Reproduce:
      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
    • Sprint:
      Storage 2018-01-01, Storage 2018-01-15
    • 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.

        Attachments

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

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: