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

backup_restore.js should run ReplSetTest.awaitSecondaryNodes before calling fsync on secondary.

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.5.6
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Fully Compatible
    • ALL
    • 0

      https://github.com/mongodb/mongo/blob/07ddacf92a2c53bd5a02878917ab8ebb35874413/jstests/noPassthrough/libs/backup_restore.js#L259

      backup_restore.js
      
              // Perform the data backup to new secondary
              if (options.backup == 'fsyncLock') {
                  // Test that the secondary supports fsyncLock
                  var ret = secondary.getDB("admin").fsyncLock();
                  if (!ret.ok) {
      

      Due to the load from the CRUD and FSM clients, we should wait for the non-primary nodes to become SECONDARY before running the fsync command. This should stabilize the test in the face of any rollbacks.

            Assignee:
            benety.goh@mongodb.com Benety Goh
            Reporter:
            benety.goh@mongodb.com Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: