// if quiesce happened before roll, the standby will be behind by 1 transaction
// which will be reclaimed by opening the log after
long extraTransaction = rollAfterQuiesce ? 1 : 0;
assertEquals(getCurrentTxId(primary), getCurrentTxId(standby) + extraTransaction);
} else {
standby.quiesceStandby(FSEditLogLoader.TXID_IGNORE);
}
// make sure the checkpoint indeed failed
assertTrue(h.receivedEvents
.contains(InjectionEvent.STANDBY_EXIT_CHECKPOINT_EXCEPTION));