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

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

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 1.19.0
    • Affects Version/s: None
    • Component/s: libmongoc
    • None
    • Fully Compatible

      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.

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

              Created:
              Updated:
              Resolved: