use of com.twitter.distributedlog.LedgerDescriptor in project distributedlog by twitter.
the class ReadAheadWorker method closeCurrentLedgerHandle.
private boolean closeCurrentLedgerHandle() {
if (currentLH == null) {
return true;
}
boolean retVal = false;
LedgerDescriptor ld = currentLH;
try {
handleCache.closeLedger(ld);
currentLH = null;
retVal = true;
} catch (BKException bke) {
LOG.debug("BK Exception during closing {} : ", ld, bke);
handleException(ReadAheadPhase.CLOSE_LEDGER, bke.getCode());
}
return retVal;
}
Aggregations