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

Replace invariant with tassert in awaitReplication

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Replication
    • Fully Compatible
    • 0

      Inside ReplicationCoordinatorImpl we currently invariant if we're going to deadlock the server.

      However, this operation is quite aggressive and can cause general unavailability issues in case we find a problem. invariants should be reserved for dangerous unrecoverable situations and as such we should strive to replace them with tasserts if possible.

            Assignee:
            huayu.ouyang@mongodb.com Huayu Ouyang
            Reporter:
            jordi.olivares-provencio@mongodb.com Jordi Olivares Provencio
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated:
              Resolved: