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

Support unordered operations on mongos

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 7.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • Repl 2023-05-29, Repl 2023-06-12

      On ordered operations, mongos will stop processing replies on the first error it sees. For unordered operations this is not the case. So mongos expects to get back a number of replies corresponding to the number of operations it sent in the case of unordered operations.

      However, for certain kinds of errors such as StaleConfig errors, mongod stops processing operations right away (even for unordered operations) and this violates the contract with mongos. We can solve this by "filling up" the rest of the reply vector with copies of the last error in the case of StaleConfig, etc.

      This is currently the model in use by batch write operations.

      After this ticket is complete, the unit tests here will need to be altered - they are testing that after a single StaleConfig error, even in unordered operations there are no more reply items. However that will no longer be the case.

            Assignee:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Reporter:
            vishnu.kaushik@mongodb.com Vishnu Kaushik
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: