issue 1152: Eliminated consistency problems on exception during compaction