Compact before replication sync

@clebertsuconic

FWIW1, notice the last commit that will print-out the journal on failure. It is the one I wrote about today.

FWIW2, I do not think JUnit3 lets us do it, at least not in a non-hack way, but it would be nice to have a auto-PrintJournal when a test fails.