cb.addComplete(BKException.Code.InterruptedException,
LedgerHandle.this, -1, ctx);
}
try {
bk.mainWorkerPool.submitOrdered(ledgerId, new SafeRunnable() {
@Override
public void safeRun() {
if (metadata.isClosed()) {
LOG.warn("Attempt to add to closed ledger: " + ledgerId);
LedgerHandle.this.opCounterSem.release();