SERVER-136502ClosedFixed

Abandon IndexBuildsCoordinator::onStepUp if the stepup is abandoned

IndexBuildsCoordinator::onStepUp acquires a lock [in a loop|https://github.com/10gen/mongo/blob/022869cbd9f2c67ee6cf0a275ad2b92a49f64926/src/mongo/db/index_builds/index_builds_coordinator.cpp#L2271-L2284] to make sure we are primary. This loop starts before we are guaranteed to be a writable primary which necessitates the loop. If the stepUp is cancelled then this loop is not able to complete Subsequent stepups need to [wait for the previous stepUp to end|https://github.com/10gen/mongo/blob/d

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc09.1.0-rc10249.0.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.