Github user revans2 commented on the issue:
@anmolnar I will add some kind of a test. I ran into a lot of issues with
`testTxnAheadSnapInRetainDB`. I could not get it to run correctly against
master as it would always end up electing the original leader again and the
test would fail, but not because it had reproduced the issue. I finally just
did development work based off of the [original
and verified that `testTxnAheadSnapInRetainDB` passed, or that if it failed it
did so because of leader election.