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

Mirror reads logic incorrectly assumes response is always OK

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.8.0
    • Component/s: None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Backport Requested:
      v4.4
    • Sprint:
      Service arch 2020-10-05
    • Linked BF Score:
      24

      Description

      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.

        Attachments

          Activity

            People

            Assignee:
            ben.caimano Benjamin Caimano (Inactive)
            Reporter:
            spencer Spencer Brody (Inactive)
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: