A rollback is reverting data to a previous state. Typically questions in this tag involve transactions in Relational Database Management Systems, where a ROLLBACK command is used to discard any changes to the data since a transaction started.
Questions tagged [rollback]
1545 questions
14
votes
3 answers
FluentMigrator rolling back to a Not Nullable column?
Given the following Migration:
[Migration(1)]
public class Mig001 : Migration
{
public override void Up()
{
Alter.Table("foo").AlterColumn("bar").AsInt32().Nullable();
}
public override void Down()
{
…

user1838662
- 503
- 7
- 17
13
votes
4 answers
How do I roll back all or part of a commit to svn?
How do I revert all or part of an SVN commit using TortoiseSVN?

Redwood
- 66,744
- 41
- 126
- 187
13
votes
5 answers
Delta Lake rollback
Need an elegant way to rollback Delta Lake to a previous version.
My current approach is listed below:
import io.delta.tables._
val deltaTable = DeltaTable.forPath(spark, testFolder)
spark.read.format("delta")
.option("versionAsOf", 0)
…

Fang Zhang
- 1,597
- 18
- 18
13
votes
2 answers
MySql stored procedures, transactions and rollbacks
I can't find an optimal way to use transactions in a MySql Stored Procedure. I want to ROLLBACK if anything fails:
BEGIN
SET autocommit=0;
START TRANSACTION;
DELETE FROM customers;
INSERT INTO customers VALUES(100);
INSERT INTO…

vulkanino
- 9,074
- 7
- 44
- 71
13
votes
3 answers
How to make multiple REST requests transactional/atomic?
I have a following situation.
I have a REST client, that acts as a facade towards 3 other REST clients. (I'm programming in Java, using Spring Boot)
One of the responsibilites of the client includes doing CRUD operations on users.
Now, all 3 other…

ioreskovic
- 5,531
- 5
- 39
- 70
12
votes
1 answer
Rolling back to an older version of a firebase function (google cloud function)
I am trying to find an easy way to roll back to a/the previous version of my firebase function(google cloud function), in case the new release of this firebase function creates a problem to the deployed system.
The way I deploy the functions is via…

Antonis S
- 733
- 6
- 15
12
votes
4 answers
Spring Transaction not rolling back
I have something like this:
@Service
@Transactional
public class ServiceA {
@Autowired
SomeDAO1 dao1;
@Autowired
ServiceB serviceB;
public void methodServiceA() {
serviceB.someMethodThatRunsInsertIntoDB();
…

user2466251
- 183
- 1
- 3
- 11
12
votes
3 answers
PHP Sqlite3 (not PDO!) transactions?
Is it possible to use transactions (and rollbacks) with sqlite3 drivers in PHP? I havn't found infos here: http://de2.php.net/manual/en/book.sqlite3.php
I dont want to use PDO...
Thanks for your help

mr_app
- 1,292
- 2
- 16
- 37
11
votes
2 answers
Reverting to a specific sha or commit
I'm trying to revert to a specific commit ( 3d5575f8e4c97ddab8ad5d540fee4664c04db75d ), but when i do:
git revert 3d5575f8e4c97ddab8ad5d540fee4664c04db75d
it says:
fatal: 'revert' is not possible because you have unmerged files.
Please, fix them up…

Oscar Godson
- 31,662
- 41
- 121
- 201
11
votes
2 answers
How to undo a Git rollback
I wanted to rollback to the last commit after making a massive error, but I managed to rollback a little too fair. The commit I wanted to reassert doesn't appear when I enter 'git log' in bash (I suppose because it's no longer in the history). Is…

Chironex
- 809
- 3
- 10
- 28
11
votes
2 answers
How rollback transaction after timeout in spring boot application in same way as on weblogic
So in my weblogic application we are you using some jtaWeblogicTransactionManager. There is some default timeout which can be override in annotation @Transactional(timeout = 60). I created some infinity loop to read data from db which correctly…

hudi
- 15,555
- 47
- 142
- 246
11
votes
1 answer
Rollback and Raiseerror, which first?
I sometimes perform the following set of statement in the following order:
Raiseerror(...)
Rollback;
but I am wondering if it cause the same effect as below:
Rollback;
Raiseerror(...)
I understand they are the same and cause the same effect. Doing…

Willy
- 9,848
- 22
- 141
- 284
11
votes
2 answers
Grails 2.4.4: How to reliably rollback in a complex service method
Consider the following service (transactional by default). A player must always have one account. A player without at least one corresponding account is an error state.
class playerService {
def createPlayer() {
Player p new Player(name:…

John Little
- 10,707
- 19
- 86
- 158
11
votes
2 answers
Hibernate - Do I really need to rollback failed read-only transaction?
I've just started learning Hibernate and I use the following pattern (from documentation) for every transaction:
private Session session;
private Transaction transaction;
protected List selectAll(Class clazz) throws HibernateException {
List…

naXa stands with Ukraine
- 35,493
- 19
- 190
- 259
11
votes
6 answers
Git cannot undo modified files
I just want to get back to a clean working directory, exactly as it was after my last commit. Git is reporting to me a load of file modifications that I haven't made, so I suspect it's something to do with line endings.
I have tried all the usual…

WickyNilliams
- 5,218
- 2
- 31
- 43