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

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Catalog and Routing
    • 133
    • 1
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

            Assignee:
            Unassigned
            Reporter:
            Haley Connelly
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: