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

step_down_during_draining.js should wait for writes to be durable before disable replication on secondaries using fail point

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: 3.4.3
    • Fix Version/s: 3.4.4
    • Component/s: Replication
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Completed:
    • Sprint:
      Repl 2017-04-17

      Description

      On slow machines, it may be possible that the durable optime has not caught up with the committed optime before we disable replication the secondaries. This may lead to failed elections when we request one of the secondaries to step up to become primary.

          replSet.awaitReplication();
       
          // Enable fail point to stop replication.
          var secondaries = replSet.getSecondaries();
          secondaries.forEach(enableFailPoint);
      ...
          stepUp(secondary);
      

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: