Mirror reads logic incorrectly assumes response is always OK

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.8.0
    • Affects Version/s: None
    • Component/s: None
    • Fully Compatible
    • ALL
    • v4.4
    • Service arch 2020-10-05
    • 24
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The mirrored reads code triggers a fatal assertion if the response from the mirroring request is non-ok: https://github.com/mongodb/mongo/blob/1373280c254a39d2ca7d85563718a6f74c927216/src/mongo/db/mirror_maestro.cpp#L382-L386

      As far as I can tell, there's no basis for that assumption, the command could fail for any number of reasons, including network errors.

              Assignee:
              Benjamin Caimano (Inactive)
              Reporter:
              Spencer Brody (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: