/**
* {@inheritDoc}
*/
public void updateCommitted(Update update, String path) {
Record record = (Record) update.getAttribute(ATTRIBUTE_RECORD);
if (record == null) {
if (status == STARTED) {
log.warn("No record prepared.");
} else {
log.info("not started: update commit ignored.");
}
return;
}
try {
long journalUpdateSize = record.update();
long recordRevision = record.getRevision();
setRevision(recordRevision);
log.debug("Stored record '{}' to Journal ({})", recordRevision, journalUpdateSize);
Object updateSizeValue = update.getAttribute(ATTRIBUTE_UPDATE_SIZE);
long updateSize = updateSizeValue != null? (Long)updateSizeValue : 0;
updateCount.compareAndSet(Integer.MAX_VALUE, 0);
auditLogger.info("[{}] {} {} ({})", new Object[]{updateCount.incrementAndGet(),
record.getRevision(), path, updateSize});
} catch (JournalException e) {
String msg = "Unable to commit log entry.";
log.error(msg, e);
} catch (Throwable e) {