SERVER-134782ClosedFixed

Implement step-up drain-complete handshake for the pipelined oplog applier

This ticket handles step-up: on a step-up signal, the applier drains and signals drain-complete so the replication coordinator can finish transitioning to primary. This ticket should include: * On the step-up signal, stop pulling and perform a full drain, then signal drain-complete to the replication coordinator. * A drained pipeline implying no in-flight batches and no outstanding deferred writes, so the new primary starts from a fully-applied, consistent state.

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix
9.1.0-rc0
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
auto-reverted