Allow mongos to store full OpTimes for GLE support

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.1.9
    • Affects Version/s: None
    • Component/s: Replication
    • None
    • Fully Compatible
    • RPL A (10/09/15)
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      mongos needs to store OpTimes instead of Timestamps, in order to include the correct term when running GLE commands on shards.
      In pv1, mongos will receive a valid term in the optime it gets as part of $gleStats. This term can be used in the wOpTime field of a subsequent GLE command, and everything should work as long as the shard remains in pv1.
      In pv0, or from a 3.0 shard, mongos will receive no term in $gleStats. It will store a sentinel invalid term for such timestamps, and use just a timestamp for wOpTime in a subsequent GLE command.

            Assignee:
            Siyuan Zhou
            Reporter:
            Eric Milkie
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: