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

Support both "skip" and "times" for a single fail point

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Backlog
    • Major - P3
    • Resolution: Unresolved
    • None
    • None
    • None
    • Service Arch
    • 5

    Description

      It'd be useful for some new drivers tests to set fail points like:

      {
        configureFailPoint: "failCommand",
        mode: { times: 1, skip: 1 },
        data: { failCommands: ["insert"], errorCode: 11600
      }

      This should allow one insert command to execute, fail the second insert command with error code 11600, and then allow all future insert commands to execute normally.

      Attachments

        Activity

          People

            backlog-server-servicearch Backlog - Service Architecture
            divjot.arora@mongodb.com Divjot Arora (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: