You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2011/08/15 14:45:27 UTC
[jira] [Issue Comment Edited] (JENA-95) journal.jrl is not released
when expelling a alocation
[ https://issues.apache.org/jira/browse/JENA-95?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13085046#comment-13085046 ]
Andy Seaborne edited comment on JENA-95 at 8/15/11 12:45 PM:
-------------------------------------------------------------
This wasn't the original US for expel, but it seems reasonable to use it as this (rename as "release"?). No file handles should be kept.
But it does seem to work for me - I can't reproduce this. What is needed is a test case to give a sequence of TxTDB operations that leads to the situation.
The code you cite (in JournalControl.recoverNodeDat) is called only on dataset recovery. I've added dataJrnl.close() in SVN.
Is there a recovery going on? Recovery is done if a non-empty node data journal file is found during initializing that dadaset for transactions. Expelling an active datset is another possibility but should be caught in the latest dev build.
was (Author: andy.seaborne):
This wasn't the original US for expel, but it seems reasonable to use it as this (rename as "release"?). No file handles should be kept.
But it does seem to work for me - I can't reproduce this. What is needed is a test case to give a sequence of TxTDB operations that leads to the situation.
The code you cite (in JournalControl.recoverNodeDat) is called only on dataset recovery. I've added dataJrnl.close() ;
Is there a recovery going on? Recovery is done if a non-empty node data journal file is found during initializing that dadaset for transactions.
> 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
> 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