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

Disallow hedging for commands that can potentially do writes

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.4.0-rc0, 4.7.0
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.4
    • Sharding 2020-03-09, Sharding 2020-03-23

      aggregate and mapReduce commands can have an "out" stage that does writes. Hedging these commands could lead to unexpected behaviors since all writes need to be routed to the primary (i.e. writes will be executed more than once). As such, we need to disallow hedging for aggregate, mapReduce and all other commands can potentially do writes. 

            Assignee:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: