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

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

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Service Arch
    • 5

      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.

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

              Created:
              Updated: