Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1389

Provide consistency to write concern

    • Type: Icon: Improvement Improvement
    • Resolution: Unresolved
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: API
    • Labels:

      in the current API. write concern are managed by only one class, beside the fact that several roles has been identified (https://docs.mongodb.com/manual/reference/write-concern/)

      • Majority
      • Not Acknowledged
      • Node
      • Tag

      The consequence is that it leads to lack of consistency states for write concern objects.
      Inconsistency managed by the driver. But in this case it's hard to cover all unexpected configuration. And If it happens, then the user faces an exception followed by a potential core dump.

      Furthermore, the documentation of the API should explicitely provide which state to avoid ...

      All that can be solved by building consistent states. And this can be obtained with a clean classes hierarchy that declare a class for each identified role.

        1. semantics.png
          semantics.png
          29 kB
        2. write_concern_1.png
          write_concern_1.png
          27 kB

            Assignee:
            Unassigned Unassigned
            Reporter:
            yoann.couillec@amadeus.com Yoann Couillec
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated: