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

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

    XMLWordPrintableJSON

Details

    • Icon: New Feature New Feature
    • Resolution: Incomplete
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Replication
    • None
    • Replication
    • Fully Compatible

    Description

      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.)

      Attachments

        Activity

          People

            backlog-server-repl Backlog - Replication Team
            glenn Glenn Maynard
            Votes:
            4 Vote for this issue
            Watchers:
            9 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: