Class TransactionalEntryLogCompactor


  • public class TransactionalEntryLogCompactor
    extends AbstractLogCompactor
    This class is used for compaction. Compaction is done in several transactional phases. Phase 1: Scan old entry log and compact entries to a new .compacting log file. Phase 2: Flush .compacting log to disk and it becomes .compacted log file when this completes. Phase 3: Flush ledger cache and .compacted file becomes .log file when this completes. Remove old entry log file afterwards.