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

XMLWordPrintableJSON

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

      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
            Reporter:
            Benety Goh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: