You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2013/08/28 22:20:28 UTC
svn commit: r1518355 -
/jena/trunk/jena-text/src/main/java/org/apache/jena/query/text/DatasetGraphText.java
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