Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-3769

Revisit Spec Compliance on Retryable Writes

    • 5
    • Not Needed

      Use Case

      As a developers
      I want the driver to retry writes according to the specification
      So that the driver behaves as expected.

      The driver currently determines if a write is retryable by only looking at the error code. The retryable writes specification states which error codes are retryable but that the driver MUST retry any write when the error has the "RetryableWriteError" label. From server 4.4 the server adds the label itself so that must be the source of truth, not the error code.

      User Impact

      Nothing known broken.

      Dependencies

      None

      Unknowns

      None

      Acceptance Criteria

      • Update the check if a write is retryable to be based only on the RetryableWriteError label and not the code.
        -Re-enable the currently skipped tests.
        -Limit scope to 4.x driver unless it is a straight forward port to 3.x.

      Implementation Requirements

      None

      Testing Requirements

      • All existing tests must pass.

      Documentation Requirements

      None

      Follow Up Requirements

      None

            Assignee:
            neal.beeken@mongodb.com Neal Beeken
            Reporter:
            durran.jordan@mongodb.com Durran Jordan
            Daria Pardue
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: