in encryption/src/main/java/org/apache/solr/update/DirectUpdateHandler2Copy.java [847:881]
public void rollback(RollbackUpdateCommand cmd) throws IOException {
TestInjection.injectDirectUpdateLatch();
if (core.getCoreContainer().isZooKeeperAware()) {
throw new UnsupportedOperationException(
"Rollback is currently not supported in SolrCloud mode. (SOLR-4895)");
}
rollbackCommands.mark();
boolean error = true;
try {
log.info("start {}", cmd);
rollbackWriter();
// callPostRollbackCallbacks();
// reset commit tracking
commitTracker.didRollback();
softCommitTracker.didRollback();
log.info("end_rollback");
error = false;
} finally {
addCommandsCumulative.mark(-addCommands.sumThenReset());
deleteByIdCommandsCumulative.mark(-deleteByIdCommands.sumThenReset());
deleteByQueryCommandsCumulative.mark(-deleteByQueryCommands.sumThenReset());
if (error) {
numErrors.increment();
numErrorsCumulative.mark();
}
}
}