Fassert 50806 should be an Invariant on 4.2 and later

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Replication
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The comment says that this should never happen, so I would suggest that we make it an invariant: https://github.com/mongodb/mongo/blob/e09ce369e4912a945454a5494248046535c70460/src/mongo/db/repl/replication_recovery.cpp#L244-L251

       

      I believe that this fassert used to be expected to be hit in MongoDB 4.0, but not in 4.2 and later. Let me know if the fassert isn't expected to be hit in 4.0 as well and I'll file another bug report

       

      Here is the fassert in 4.0: https://github.com/mongodb/mongo/blob/6156b718630344212bea269a28ed5bacf96a9b86/src/mongo/db/repl/replication_coordinator_impl.cpp#L789

            Assignee:
            [DO NOT USE] Backlog - Replication Team
            Reporter:
            Kelsey Schubert
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

              Created:
              Updated: