You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@jena.apache.org by "Andy Seaborne (JIRA)" <ji...@apache.org> on 2016/01/21 15:13:39 UTC
[jira] [Commented] (JENA-1122) Fuseki fails to start if configured
with two services that share the same dataset with a lucene index.
[ https://issues.apache.org/jira/browse/JENA-1122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15110631#comment-15110631 ]
Andy Seaborne commented on JENA-1122:
-------------------------------------
>From JENA-1104, for reference.
But just addressing the text index part will not work and it needs to have a shared dataset.
----
Opening the text index twice causes the problem.
{noformat}
public static void mainText(String... args) throws IOException {
Directory dir = FSDirectory.open(new File("TEXT")) ;
EntityDefinition def = new EntityDefinition("uri", "text") ;
TextIndexConfig conf = new TextIndexConfig(def) ;
System.out.println("Index 1") ;
TextDatasetFactory.createLuceneIndex(dir, conf) ;
System.out.println("Index 2") ;
TextDatasetFactory.createLuceneIndex(dir, conf) ;
System.out.println("DONE") ;
}
{noformat}
> 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)