Uploaded image for project: 'Ruby Driver'
  1. Ruby Driver
  2. RUBY-2171

Driver uses legacy write retries by default in standalone topology

    • Type: Icon: Bug Bug
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: Operations
    • None

      Our documentation at https://docs.mongodb.com/ruby-driver/master/tutorials/ruby-driver-create-client/#legacy-retryable-writes states:

      > If modern retryable writes mechanism is disabled by setting the client option retry_writes: false or by using the retryWrites=false URI option, the driver will utilize the legacy retryable writes mechanism.

      It appears that the topology check is performed prior to retryable_writes option check, such that when the driver is in the standalone topology it falls back to legacy retryable writes even when retry_writes=true.

      Add tests to be run in single topology that retry_writes=true flag produces no retries by default
      Fix driver as necessary

            Assignee:
            Unassigned Unassigned
            Reporter:
            oleg.pudeyev@mongodb.com Oleg Pudeyev (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: