[ 
https://issues.apache.org/jira/browse/JENA-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085825#comment-13085825
 ] 

Paolo Castagna commented on JENA-95:
------------------------------------

Shouldn't we close the Journal also in Storeconnection.expel(...) method?

Index: src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java
===================================================================
--- src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java    (revision 1158186)
+++ src/main/java/com/hp/hpl/jena/tdb/StoreConnection.java    (working copy)
@@ -107,6 +107,7 @@
             return ;
         if ( ! force && sConn.transactionManager.activeTransactions() )
             throw new TDBTransactionException("Can't expel: Active 
transactions for location: "+location) ;
+        sConn.transactionManager.getJournal().close() ;
         sConn.baseDSG.close() ;
         cache.remove(location) ;
     } 



> journal.jrl is not released when expelling a alocation
> ------------------------------------------------------
>
>                 Key: JENA-95
>                 URL: https://issues.apache.org/jira/browse/JENA-95
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>            Reporter: Simon Helsen
>            Assignee: Andy Seaborne
>            Priority: Critical
>
> whenever I call StoreConnection.expel(location) it seems that something is 
> holding on to journal.jrl in location
> Caused by: 
> java.io.IOException: Could not delete 
> D:\jfsDev\working_dir\indices\4cb718ffab6047639c383cf9582633dc\jfs-rdfindex\journal.jrnl
>       at java.lang.Throwable.<init>(Throwable.java:67)

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to