-
Type: Bug
-
Resolution: Unresolved
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
Labels:None
-
Replication
-
ALL
-
v8.0
-
-
Repl 2024-03-04, Repl 2024-03-18, Repl 2024-04-01, Repl 2024-04-15, Repl 2024-04-29, Repl 2024-05-13
-
9
When background compaction is enabled (as shown here and here), one may hit the following invariant:
"expr":"_rsConfigState == kConfigReconfiguring","file":"src/mongo/db/repl/replication_coordinator_impl.cpp","line":4224
suganthi.mani@mongodb.com started to investigate the issue:
It seems like your change has exposed a bug in repl layer. Enabling the auto compaction as part of notifyReplRecoveryComplete (internally called by replSetInitiate cmd code path) , makes replSetInitiate cmd to take longer time to complete (few milliseconds) and that causes to race with stepup thread and leading to the invariant failure