[SERVER-55262] Fassert 50806 should be an Invariant on 4.2 and later Created: 17/Mar/21  Updated: 06/Dec/22

Status: Backlog
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor - P4
Reporter: Kelsey Schubert Assignee: Backlog - Replication Team
Resolution: Unresolved Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Replication
Operating System: ALL
Participants:

 Description   

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


Generated at Thu Feb 08 05:35:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.