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

Andy Seaborne commented on JENA-163:
------------------------------------

Even when the multiple file open issue is fixed, there is still a problem - it 
occurs (typically) after a longer run.  

The current Jena163_TDBDifferentIds prints out every file open/sync/close on 
the journalled files so I check that the right sequence of file operations and 
ownership is happening.  Therefore, it might be that file operations from 
different threads do not provide the necessary guarantees of consistency.  This 
is fixable by simply initializing the state of the file when it is started to 
be used, rather than when it is finished with.  When this is done, the test 
case runs for much longer.  Other, unrelated problems sometimes occur but on 
checking all these, they are not connected with file management.

Next step: central file management (avoids repeated open/close), initialize the 
state of a temporary journal file explicitly at point of use.  These will 
affect,positively, the test case and are generally better design anyway.

                
> TDBException: Different ids for <uri>: allocated: expected [...], got [...] 
> ----------------------------------------------------------------------------
>
>                 Key: JENA-163
>                 URL: https://issues.apache.org/jira/browse/JENA-163
>             Project: Jena
>          Issue Type: Bug
>          Components: TDB
>            Reporter: Andy Seaborne
>            Assignee: Andy Seaborne
>


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to