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

XMLWordPrintableJSON

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

      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:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Glenn Maynard
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

              Created:
              Updated:
              Resolved: