Uploaded image for project: 'C Driver'
  1. C Driver
  2. CDRIVER-4110

Session causalConsistency option should not default to true if snapshot is true

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Unknown
    • Resolution: Fixed
    • None
    • 1.19.0
    • libmongoc
    • None
    • Fully Compatible

    Description

      CDRIVER-4034 included a workaround to explicitly set causalConsistency to false if snapshot was true when constructing a session entity in a unified test. This could potentially override an explicit value for causalConsistency if a test were to specify both as true.

      Note: no such test exists because it would require expecting a failure when constructing the session entity (before any test operations are run). This could only be done through a valid-fail test in the unified test format spec, which currently isn't use for testing other specifications. In this case, the conflict between both session options is covered by a prose test.

      Having said that, the Causal Consistency spec was changed as part of Snapshot Sessions to not default to true if snapshot was explicitly set to true. Fixing this should entail changes to the session options API and entail reverting the above work-around in the test runner.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: