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

Successive Errors in FailCommand

    • Replication

      DRIVERS-2327 introduces a problem in test where we need to configure a fail point to raise errors in succession. For instance, consider the following proposed configuration schema:

      db.adminCommand({
          configureFailPoint: "failCommand",
          mode: {times: 2},
          data: {
              failCommands: ["insert"],
              errors: [
                  {errorCode: 10107, errorLabels: ["RetryableWriteError"]}, 
                  {errorCode: 9001, errorLabels: ["RetryableWriteError", "NoWritesPerformed"]}
              ]
          }
      );
      

      With the proposed update, if we ran three inserts: the first insert would raise 10107, the second insert would raise 9001, and the third insert would raise no failpoint-configured error.

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            preston.vasquez@mongodb.com Preston Vasquez
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: