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

Document usability of async methods with sessions (ex: ReplaceOneAsync)

    • Type: Icon: Spec Change Spec Change
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Component/s: Sessions
    • None
    • Needed

      This came out of an investigation for SERVER-43889, where the reporter was misusing the ReplaceOneAsync method with retryable writes. In this case, they were trying to run multiple concurrent retryable writes on the same session before waiting for the previous write to complete.

      The documentation doesn't mention the overloaded version of ReplaceOneAsync, which can take a session.

      We should document the proper way to use this (and similar async methods?) with sessions since they can produce undesirable results otherwise.

            Assignee:
            Unassigned Unassigned
            Reporter:
            pavithra.vetriselvan@mongodb.com Pavithra Vetriselvan
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: