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

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Blocker - P1 Blocker - P1
    • 3.4.0-rc1
    • Affects Version/s: None
    • Component/s: 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

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

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

              Created:
              Updated:
              Resolved: