Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-5148

w='online' should allow syncing to all online replicas

    • Type: Icon: New Feature New Feature
    • Resolution: Incomplete
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Replication
    • Labels:
      None
    • Replication
    • Fully Compatible

      When serializing operations (eg. for two-phase commit systems), it's useful to be able to wait until data has been sent to all replicas. Currently, this requires knowing the correct, maximum value of "w" to pass to getLastError (or setting up replica tags), and even that won't be correct if some replicas are offline.

      I'd recommend allowing

      {w: 'online'}

      , akin to 'majority', to allow waiting for all online replicas. ('$online' may be better than "online", so it can't clash with replica tags in existing deployments.)

            Assignee:
            backlog-server-repl [DO NOT USE] Backlog - Replication Team
            Reporter:
            glenn Glenn Maynard
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: