Skip to content

Commit

Permalink
Test App: Fix Java retry bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Arjun Narayan committed Jun 8, 2017
1 parent 8792e16 commit 12bf5ee
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions _includes/app/TxnSample.java
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,10 @@ public static void retryTransaction(Connection conn, RetryableTransaction tx)
if(e.getErrorCode() == 40001) {
// Signal the database that we will attempt a retry.
conn.rollback(sp);
} else {
// This is a not a serialization failure, pass it up the chain.
throw e;
}
// This is a not a serialization failure, pass it up the chain.
throw e;
}
}
}
Expand Down

0 comments on commit 12bf5ee

Please sign in to comment.