SERVER-133744ClosedFixed

Tolerate file shrinkage in SimulateCrash hook's copy_file

Currently, {{SimulateCrash.copy_file}} ({{{}buildscripts/resmokelib/testing/hooks/simulate_crash.py{}}}) stats a file once, then copies it via a {{sendfile}} loop up to that stat'd size. If the file shrinks between the stat and the end of the copy - e.g. a background WT thread hadn't fully parked when the node was paused - {{sendfile}} returns 0 early and the hook raised unconditionally, aborting the whole test run over what is only a best-effort diagnostic dbpath snapshot. Update SimulateCrash.

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-rc10229.0.7
Components
Server components related to this issue

No components specified.

Labels
Tags and classification
auto-revertedbkp