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

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

    XMLWordPrintableJSON

Details

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

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: