SERVER-137942ClosedFixed

Make StorageEngineMock throw to test DBException handling

{color:#c1c7d0}In the ovverride of tryPauseAutoCompactForReplicaSetWritesBlock, the StorageEngineMoch returns an error status rather than throwing, so the new test does not exercise the observer helper's {{DBException}} catch. Removing that catch would still pass the test, although an escaping exception would terminate the process through {{RecoveryUnit::Change::commit() noexcept.}}{color} {color:#c1c7d0}As part of this ticket, we should make this mock throw so the existing commit and write-b

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.