SERVER-96874ClosedFixed

Replication recovery can crash due to concurrent shutdown

In the linked AF ticket, the node was [applying oplog entries|https://github.com/10gen/mongo/blob/09d253d066bb41ef298ac79ec581ccee3bfc250c/src/mongo/db/repl/replication_recovery.cpp#L792-L811] as part of replication recovery as a standalone. There was a concurrent shutdown triggered by a SIGTERM and then the node [crashed|https://github.com/10gen/mongo/blob/09d253d066bb41ef298ac79ec581ccee3bfc250c/src/mongo/db/repl/replication_recovery.cpp#L534-L536] since shutdown [kills all operations|https://

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.0.0-rc08.3.98.0.377.0.49
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
bkpneweng