@Override public void delete(long tid) { store.delete(tid); removeCandidate(tid); }
case FAILED: case SUCCESSFUL: store.delete(txid); log.debug("Aged off FATE tx {}", String.format("%016x", txid)); break;
public void delete(long tid) { store.reserve(tid); try { switch (store.getStatus(tid)) { case NEW: case FAILED: case SUCCESSFUL: store.delete(tid); break; case FAILED_IN_PROGRESS: case IN_PROGRESS: throw new IllegalStateException( "Can not delete in progress transaction " + String.format("%016x", tid)); case UNKNOWN: // nothing to do, it does not exist break; } } finally { store.unreserve(tid, 0); } }
case SUCCESSFUL: System.out.printf("Deleting transaction: %016x (%s)%n", txid, ts); zs.delete(txid); state = true; break;
@Override public void delete(long tid) { store.delete(tid); removeCandidate(tid); }
public void delete(long tid) { store.reserve(tid); try { switch (store.getStatus(tid)) { case NEW: case FAILED: case SUCCESSFUL: store.delete(tid); break; case FAILED_IN_PROGRESS: case IN_PROGRESS: throw new IllegalStateException( "Can not delete in progress transaction " + String.format("%016x", tid)); case UNKNOWN: // nothing to do, it does not exist break; } } finally { store.unreserve(tid, 0); } }
case FAILED: case SUCCESSFUL: store.delete(txid); log.debug("Aged off FATE tx " + String.format("%016x", txid)); break;
case SUCCESSFUL: System.out.printf("Deleting transaction: %016x (%s)%n", txid, ts); zs.delete(txid); state = true; break;