/**
* Consumes all {@link CompactionUpdateBatch}(es) produced by the Segment compactor.
*/
protected void consumeCompactionBatches() {
while(true) {
CompactionUpdateBatch updateBatch = _compactor.pollCompactionBatch();
if(updateBatch == null) break;
try {
consumeCompaction(updateBatch);
} catch (Exception e) {
_log.error("failed to consume compaction batch " + updateBatch.getDescriptiveId(), e);
} finally {
_compactor.recycleCompactionBatch(updateBatch);
}
}
}