[
https://issues.apache.org/jira/browse/JENA-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110636#comment-15110636
]
Andy Seaborne commented on JENA-1122:
-------------------------------------
Summarizing email discussion: there are two approaches:
# Internal static state in {{TextDatasetFactory}} that the same datasets object
is returned each time. c.f. TDB's {{StoreConnection}}. Extends sharing of text
datasets to work with java/API uses but not "any dataset".
# Assembling datasets copes with sharing. Extends sharing to any dataset but
not API use.
The second one is easier to do because there is a natural key of the resource
(URI, bnode) for the dataset.
> 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)