in cloud-spanner-r2dbc/src/main/java/com/google/cloud/spanner/r2dbc/v2/DatabaseClientTransactionManager.java [160:170]
ApiFuture<Void> rollbackTransaction() {
if (isInReadWriteTransaction()) {
if (this.lastStep == null) {
LOGGER.warn("Read/Write transaction rolling back without any statements.");
}
return this.transactionManager.rollbackAsync();
}
LOGGER.warn("Rollback called outside of an active read/write transaction.");
return ApiFutures.immediateFuture(null);
}