[
https://issues.apache.org/jira/browse/JENA-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15154831#comment-15154831
]
ASF GitHub Bot commented on JENA-1122:
--------------------------------------
Github user afs commented on the pull request:
https://github.com/apache/jena/pull/123#issuecomment-186396794
I've put in this code (integrated via applying the diff and some minor
changes after that).
There is an outstanding issue:
If two different files (e.g `run/configuration/service1.ttl` and
`run/configuration/service2.ttl`) each define their dataset with the same URI
(bad choice but it can happen) then the second is lost.
One possibility is to clear the Resource->dataset mapping for each file.
Another is to live with it.
If the latter, it would be good to check for mistakes. Any good
suggestions how to check that?
> 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)