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

failCommand failpoint should ignore commands from replica set members

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Fixed
    • Icon: Major - P3 Major - P3
    • 4.0.6, 4.1.7
    • None
    • Replication
    • None
    • Minor Change
    • v4.0
    • Repl 2018-06-04, Repl 2018-12-17

    Description

      When a secondary runs a command on the primary, it will trigger the failCommand failpoint. This is unexpected for drivers because we would like to use failCommand to test retryable writes and transactions on replica sets.

      Some options I see:

      1. change failCommand to ignore commands from replica set members
      2. change failCommand to ignore all commands except those in the sessionCheckoutWhitelist?
      3. drivers only use failCommand against single node replica sets or standalone servers
      4. drivers never use the "skip" and "times" options and instead configure the failpoint as "alwaysOn" or "off"

      jesse, spencer

      Attachments

        Activity

          People

            jesse@mongodb.com A. Jesse Jiryu Davis
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            16 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: