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

Clarify how the majority is calculate for w:majority

    • Type: Icon: Improvement Improvement
    • Resolution: Works as Designed
    • Priority: Icon: Major - P3 Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      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"

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

              Created:
              Updated:
              Resolved:
              6 years, 49 weeks, 3 days ago