continuum-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From eveni...@apache.org
Subject svn commit: r344391 - /maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Date Tue, 15 Nov 2005 16:48:10 GMT
Author: evenisse
Date: Tue Nov 15 08:48:05 2005
New Revision: 344391

URL: http://svn.apache.org/viewcvs?rev=344391&view=rev
Log:
Retry the update if derby generate a lock exception

Modified:
    maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java

Modified: maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
URL: http://svn.apache.org/viewcvs/maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java?rev=344391&r1=344390&r2=344391&view=diff
==============================================================================
--- maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
(original)
+++ maven/continuum/tags/continuum-1.0.1/continuum-store/src/main/java/org/apache/maven/continuum/store/JdoContinuumStore.java
Tue Nov 15 08:48:05 2005
@@ -472,7 +472,15 @@
                 throw new ContinuumStoreException( "Not detached: " + object );
             }
 
-            pm.attachCopy( object, true );
+            try
+            {
+                pm.attachCopy( object, true );
+            }
+            catch ( Exception e )
+            {
+                //We retry if we obtain an exceptio like a dead lock
+                pm.attachCopy( object, true );
+            }
 
             tx.commit();
         }



Mime
View raw message