SERVER-136053ClosedFixed

Stop POA dispatch after shutdown-related abandonment

There is a bug where we return from {{_dispatchOps()}} on shutdown-related failures, but {{_run()}} continues consuming batches. We should propagate the shutdown result back to {{_run()}} and stop the dispatch loop instead. In addition to fixing the bug, this ticket should also add regression coverage that fails only the first inline op with a shutdown error and verifies that subsequent work is not attempted and {{lastApplied}} does not advance past the failed op. Also cover the failed-drain

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-rc1025
Components
Server components related to this issue

No components specified.

Labels
Tags and classification

No labels assigned.