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

    • Bug
    • Status: Closed
    • Blocker - P1
    • Resolution: Fixed
    • None
    • 3.4.0-rc1
    • Replication
    • None
    • Fully Compatible
    • ALL
    • 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();
    • Query 2016-10-31
    • 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

              tess.avitabile@mongodb.com Tess Avitabile (Inactive)
              tess.avitabile@mongodb.com Tess Avitabile (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: