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

Master-slave initial sync should use the exact _id index spec from master

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker - P1
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.4.0-rc1
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Steps To Reproduce:
      Hide

      var rt = new ReplTest();
       
      var m = rt.start(true);
      var s = rt.start(false);
       
      sleep(5000);
       
      var masterCollInfo = m.getDB("admin").getCollectionInfos({name: "system.version"})[0];
      var slaveCollInfo = s.getDB("admin").getCollectionInfos({name: "system.version"})[0];
       
      // fails
      assert.eq(masterCollInfo, slaveCollInfo);
       
      rt.stop();
      

      Show
      var rt = new ReplTest();   var m = rt.start(true); var s = rt.start(false);   sleep(5000);   var masterCollInfo = m.getDB("admin").getCollectionInfos({name: "system.version"})[0]; var slaveCollInfo = s.getDB("admin").getCollectionInfos({name: "system.version"})[0];   // fails assert.eq(masterCollInfo, slaveCollInfo);   rt.stop();
    • Sprint:
      Query 2016-10-31
    • Linked BF Score:
      0

      Description

      The slave creates the default _id index spec for the collection here. Instead, it should copy the exact _id index spec from master.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              tess.avitabile Tess Avitabile
              Reporter:
              tess.avitabile Tess Avitabile
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: