Successive Errors in FailCommand

XMLWordPrintableJSON

    • Replication
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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:
              [DO NOT USE] Backlog - Replication Team
              Reporter:
              Preston Vasquez
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated: