Repository: incubator-omid
Updated Branches:
  refs/heads/0.9.0.0 34e8465df -> de7479355


[OMID-86] Add Tx info in RollbackException

Add missing transaction information in all RollbackException in 
AbstractTransactionManager

Change-Id: Ic6279a22f087861f6fa75953a76984932ecd9a90


Project: http://git-wip-us.apache.org/repos/asf/incubator-omid/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-omid/commit/de747935
Tree: http://git-wip-us.apache.org/repos/asf/incubator-omid/tree/de747935
Diff: http://git-wip-us.apache.org/repos/asf/incubator-omid/diff/de747935

Branch: refs/heads/0.9.0.0
Commit: de7479355bef19dd6d0348b377e4cde51d691828
Parents: 34e8465
Author: Francisco Perez-Sorrosal <fperezsorro...@apache.org>
Authored: Tue Jan 30 17:14:54 2018 -0800
Committer: Francisco Perez-Sorrosal <fperezsorro...@apache.org>
Committed: Wed Jan 31 11:21:48 2018 -0800

----------------------------------------------------------------------
 .../org/apache/omid/transaction/AbstractTransactionManager.java    | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-omid/blob/de747935/transaction-client/src/main/java/org/apache/omid/transaction/AbstractTransactionManager.java
----------------------------------------------------------------------
diff --git 
a/transaction-client/src/main/java/org/apache/omid/transaction/AbstractTransactionManager.java
 
b/transaction-client/src/main/java/org/apache/omid/transaction/AbstractTransactionManager.java
index bf7d752..8b406b4 100644
--- 
a/transaction-client/src/main/java/org/apache/omid/transaction/AbstractTransactionManager.java
+++ 
b/transaction-client/src/main/java/org/apache/omid/transaction/AbstractTransactionManager.java
@@ -432,7 +432,7 @@ public abstract class AbstractTransactionManager implements 
TransactionManager {
             if (e.getCause() instanceof AbortException) { // TSO reports Tx 
conflicts as AbortExceptions in the future
                 rollback(tx);
                 rolledbackTxsCounter.inc();
-                throw new RollbackException("Conflicts detected in tx 
writeset", e.getCause());
+                throw new RollbackException(tx + ": Conflicts detected in 
writeset", e.getCause());
             }
 
             if (e.getCause() instanceof ServiceUnavailableException || 
e.getCause() instanceof ConnectionException) {

Reply via email to