jena-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a...@apache.org
Subject svn commit: r1518355 - /jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java
Date Wed, 28 Aug 2013 20:20:28 GMT
Author: andy
Date: Wed Aug 28 20:20:28 2013
New Revision: 1518355

URL: http://svn.apache.org/r1518355
Log:
"Gracefully" handle exception from underlying dataset during abort.

Modified:
    jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java

Modified: jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java
URL: http://svn.apache.org/viewvc/jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java?rev=1518355&r1=1518354&r2=1518355&view=diff
==============================================================================
--- jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java (original)
+++ jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java Wed
Aug 28 20:20:28 2013
@@ -28,6 +28,7 @@ import org.slf4j.LoggerFactory ;
 import com.hp.hpl.jena.graph.Graph ;
 import com.hp.hpl.jena.graph.Node ;
 import com.hp.hpl.jena.query.ReadWrite ;
+import com.hp.hpl.jena.sparql.JenaTransactionException ;
 import com.hp.hpl.jena.sparql.core.* ;
 
 public class DatasetGraphText extends DatasetGraphMonitor implements Transactional 
@@ -135,9 +136,10 @@ public class DatasetGraphText extends Da
         try {
             if ( needFinish )
                 textIndex.abortIndexing() ;
-            //textIndex.abort() ;
             dsgtxn.abort() ;
-        } catch (Throwable ex) { log.warn("Exception in abort: "+ex.getMessage(), ex) ; }
+        } 
+        catch (JenaTransactionException ex) { throw ex ; } 
+        catch (RuntimeException ex) { log.warn("Exception in abort: "+ex.getMessage(), ex)
; throw ex ; }
     }
 
     @Override



Mime
View raw message