Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-81487

Add comments that acquireCollection() and AutoGet() can throw WriteConflictExceptions

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Unresolved
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • Catalog and Routing
    • 133
    • 1

    Description

      SERVER-71287 changed the behavior of verifyDbAndCollection() to throw a WriteConflictException rather than SnapshotUnavailable when there is a write request.

      This means acquireCollection() and AutoGetCollection() can both throw WriteConflictException when establishing a collection snapshot. 

      There are several places in the code that don't wrap acquireCollection() in a writeConflictRetry(), but use writeConflictRetry() in the lines following the acquisition.

      Attachments

        Activity

          People

            backlog-server-catalog-and-routing Backlog - Catalog and Routing
            haley.connelly@mongodb.com Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: