if (ackSet.completeBookieAndCheck(bookieIndex)) { completed = true;
private void recyclePendAddOpObject() { entryId = LedgerHandle.INVALID_ENTRY_ID; currentLedgerLength = -1; if (payload != null) { ReferenceCountUtil.release(payload); payload = null; } cb = null; ctx = null; ensemble = null; ackSet.recycle(); ackSet = null; lh = null; clientCtx = null; isRecoveryAdd = false; completed = false; pendingWriteRequests = 0; callbackTriggered = false; hasRun = false; allowFailFast = false; writeFlags = null; recyclerHandle.recycle(this); } }
ackQuorum = ackSet.completeBookieAndCheck(bookieIndex); default: if (clientCtx.getConf().delayEnsembleChange) { if (ackSet.failBookieAndCheck(bookieIndex, addr) || rc == BKException.Code.WriteOnReadOnlyBookieException) { Map<Integer, BookieSocketAddress> failedBookies = ackSet.getFailedBookies(); LOG.warn("Failed to write entry ({}, {}) to bookies {}, handling failures.", ledgerId, entryId, failedBookies);
if (!ackSet.removeBookieAndCheck(bookieIndex)) {
if (ackSet.completeBookieAndCheck(bookieIndex) && !completed) { completed = true; cb.addLacComplete(rc, lh, ctx);