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

ASF GitHub Bot commented on JENA-1122:
--------------------------------------

GitHub user bwmcbride opened a pull request:

    https://github.com/apache/jena/pull/123

    Add memoizing of LuceneTextIndexes so that there is one TextIndexLucene

    JENA-1122
    
    These changes memoize LuceneTextIndexes so that there is one per directory, 
and Lucene RAMDirectories created by the Lucene assembler so there is one 
RAMDirectory per node in the configuration graph.
    
    One issue is when to forget a memoized object.  The policy implemented in 
this code is to forget the object when it is closed.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/epimorphics/jena JENA-1122

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/jena/pull/123.patch

To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:

    This closes #123
    
----
commit d0451f1fda636aa9fa0915e4bedd3507cea54e7a
Author: Brian McBride <[email protected]>
Date:   2016-01-21T12:32:20Z

    Add memoizing of LuceneTextIndexes so that there is one TextIndexLucene
    object per directory.  Similary so the Lucene assembler only creates one
    RAMDirectory per node.

----


> Fuseki fails to start if configured with two services that share the same 
> dataset with a lucene index.
> ------------------------------------------------------------------------------------------------------
>
>                 Key: JENA-1122
>                 URL: https://issues.apache.org/jira/browse/JENA-1122
>             Project: Apache Jena
>          Issue Type: Bug
>          Components: Text
>    Affects Versions: Jena 3.0.0, Fuseki 2.3.0
>            Reporter: Brian McBride
>
> This problem arises when the assemblers for the two services run.  For each 
> service, a separate TextIndexLucene object is created.  Both of those objects 
> try to lock the same Lucene index directory and one fails.
> A proposed fix is to modify the TextDatasetFactory to only create one 
> TextIndexLucene object per on disk directory.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to