Issue #2800715 by dcam, shashikant_chauhan, mikeryan, quietone, alexpott: Reset highwater mark *before* rolling back (cherry picked from commit 420f7b2f)
#496886
#496873
#496862