Uploaded image for project: 'Drivers'
  1. Drivers
  2. DRIVERS-2059

Update retryable writes test documentation for failCommand failpoint

    XMLWordPrintableJSON

Details

    • Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • Retryability
    • None
    • Needed

    Description

      In SPEC-1071 I updated the retryable write spec tests to use the failCommand fail point but only onPrimaryTransactionalWrite is documented in the test readme.

      For example this section is no longer accurate:

      After each test that configures a fail point, drivers should disable the
      ``onPrimaryTransactionalWrite`` fail point to avoid spurious failures in
      subsequent tests. The fail point may be disabled like so::
       
          db.runCommand({
              configureFailPoint: "onPrimaryTransactionalWrite",
              mode: "off"
          });
      

      Each test needs to disable the fail point that it set which could be "failCommand" or "onPrimaryTransactionalWrite".

      Attachments

        Activity

          People

            Unassigned Unassigned
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated: