SERVER-134781ClosedWon't Do

Implement clean shutdown with drain-first teardown for the pipelined oplog applier

This ticket implements clean shutdown: on the batcher shutdown signal, the dispatcher stops pulling, performs a full drain, and threads are joined in the correct order. This ticket should include: * The batcher shutdown signal stopping the dispatcher and issuing a full drain: queues empty, in-flight FIFO empty, lastApplied published to the last dispatched op. * Join ordering: advancer joined before the workers. * The drain is the batcher-driven clean-shutdown path. A global-shutdown interrupt

Affected Versions
Versions known to exhibit this issue

No affected versions recorded.

Fixed Versions
Versions that include the fix

No fix available yet.

Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.