SERVER-104438ClosedFixed

Reclaiming oplog may block stepup/stepdown

The OplogCapMaintainerThread deletes oplog with a method called reclaimOplog(), with global and RSTL locks held. This method can take a long time if there is a lot of oplog to reclaim, longer than 30 seconds, resulting in stepup or stepdown crashing due to not being able to obtain the RSTL. Fix might be to make reclaimOplog() interruptible, or to take the global lock without the RSTL if this is safe, or both.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

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

No components specified.

Labels
Tags and classification
or-workload-managementrepl-shortlist