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

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

Github user afs commented on the pull request:

    https://github.com/apache/jena/pull/123#issuecomment-177941348
  
    It needs to be a singleton of some kind; a static map is one way to do 
singletons.   There is only one Fuseki server per JVM.
    
    c.f. `DataAccessPointRegistry` and `Registry<K,T>`. 
    
    Referencing counting the service to dataset linkage would be good because 
it builds for any future deleting of datasets from a running server.


> 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