Uploaded image for project: 'Documentation'
  1. Documentation
  2. DOCS-9790

Clarify how the majority is calculate for w:majority

    XMLWordPrintableJSON

Details

    • Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Icon: Major - P3 Major - P3
    • None
    • None
    • None
    • None

    Description

      This is for the document write concern majority:

      Requests acknowledgment that write operations have propagated to the majority of voting nodes [2], including the primary.

      Currently we only mention that "majority" is calculated by the majority of voting nodes. However, this doesn't cover the scenario when the majority of voting nodes are arbiters, like Primary-Arbiter-Arbiter (thought this is not a recommended deployment).

      It would be nice to clarify that it calculated by the majority of voting nodes or all non-arbiter voting nodes if the majority of voting nodes are arbiters. all non-arbiter voting nodes if at least half of voting nodes are arbiters.

      https://github.com/mongodb/mongo/blob/master/src/mongo/db/repl/replica_set_config.cpp#L688-L699

      Edit: updated "all non-arbiter voting nodes if the majority of voting nodes are arbiters." to "all non-arbiter voting nodes if at least half of voting nodes are arbiters"

      Attachments

        Activity

          People

            kay.kim@mongodb.com Kay Kim (Inactive)
            linda.qin@mongodb.com Linda Qin
            Votes:
            1 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              6 years, 39 weeks, 2 days ago