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

Test coverage for prohibiting sessions with unacknowledged writes

    • Type: Icon: Task Task
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Component/s: Sessions
    • None
    • Needed
    • Hide

      Summary of necessary driver changes

      •  

      Commits for syncing spec/prose tests
      (and/or refer to an existing language POC if needed)

      •  

      Context for other referenced/linked tickets

      •  
      Show
      Summary of necessary driver changes   Commits for syncing spec/prose tests (and/or refer to an existing language POC if needed)   Context for other referenced/linked tickets  

      Summary

      When using unacknowledged writes in the session spec prohibits combining sessions with unacknowledged write concerns. There does not appear to be any common test coverage for this.

      Consider adding the following:

      • Spec test to assert that a client-side error is raised and no command is issued when combining an explicit session with an unacknowledged write concern
      • Spec test to assert that an unacknowledged write does not include an LSID, which could address the guidance for implicit sessions

      These tests could live in either the session or CRUD spec. The triage team can decide if it's worth exhaustively testing each write method, or if it'd be sufficient to focus on one (e.g. insertOne).

      Motivation

      Is this issue urgent?

      No.

      Is this ticket required by a downstream team?

      No.

      Is this ticket only for tests?

      Yes.

            Assignee:
            Unassigned Unassigned
            Reporter:
            jmikola@mongodb.com Jeremy Mikola
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: