@Override public void commit() throws CommitException { try { tx.commit(); committed = true; log.trace("txid: {} commit() -> SUCCESSFUL commitTs: {}", txid, tx.getStats().getCommitTs()); } catch (CommitException ce) { log.trace("txid: {} commit() -> UNSUCCESSFUL commitTs: {}", txid, tx.getStats().getCommitTs()); if (!log.isTraceEnabled() && notification != null) { collisionLog.trace("txid: {} trigger: {} {} {}", txid, notification.getRow(), notification.getColumn(), notification.getTimestamp()); } if (!log.isTraceEnabled() && clazz != null) { collisionLog.trace("txid: {} class: {}", txid, clazz.getName()); } collisionLog.trace("txid: {} collisions: {}", txid, tx.getStats().getRejected()); throw ce; } }
@Override public void close() { log.trace("txid: {} close()", txid); if (summaryLog.isTraceEnabled()) { TxStats stats = tx.getStats(); String className = "N/A"; if (clazz != null) { className = clazz.getSimpleName(); } // TODO log total # read, see fluo-426 summaryLog.trace( "txid: {} thread : {} time: {} ({} {} {}) #ret: {} #set: {} #collisions: {} " + "waitTime: {} committed: {} class: {}", txid, Thread.currentThread().getId(), stats.getTime(), stats.getPrecommitTime(), stats.getCommitPrimaryTime(), stats.getFinishCommitTime(), stats.getEntriesReturned(), stats.getEntriesSet(), stats.getCollisions(), stats.getLockWaitTime(), committed, className); } tx.close(); }
if (txi != null) { try { txi.getStats().report(status, loader.getClass()); } finally { tx.close();
if (txi != null) { try { txi.getStats().report(status.toString(), observer.getClass()); } finally { tx.close();