lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "crocket (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-4886) "new DirectoryTaxonomyReader(Directory)" throws "IndexNotFoundException: no segments* file found" on a new taxonomy directory
Date Tue, 26 Mar 2013 23:07:16 GMT

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

crocket commented on LUCENE-4886:
---------------------------------

I haven't tested the behavior of DirectoryTaxonomyReader on lucene 4.2, but "new DirectoryTaxonomyReader(Directory)"
could see changes and new categories without being reopened on lucene 4.1
                
> "new DirectoryTaxonomyReader(Directory)" throws "IndexNotFoundException: no segments*
file found" on a new taxonomy directory
> -----------------------------------------------------------------------------------------------------------------------------
>
>                 Key: LUCENE-4886
>                 URL: https://issues.apache.org/jira/browse/LUCENE-4886
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: modules/facet
>    Affects Versions: 4.2
>            Reporter: crocket
>            Priority: Critical
>
> I made a taxonomy directory with
> categoryDir=FSDirectory.open(new File("category"));
> taxoWriter=new DirectoryTaxonomyWriter(categoryDir, OpenMode.CREATE_OR_APPEND);
> Right after creating DirectoryTaxonomyWriter, I created a DirectoryTaxonomyReader with
> taxoReader=new DirectoryTaxonomyReader(categoryDir); which throws IndexNotFoundException.
It used to work fine with lucene 4.1.
> If I invoke new DirectoryTaxonomyReader(DirectoryTaxonomyWriter) on a new taxonomy directory,
no exception is thrown.
> Below is the exception stack trace.
> org.apache.lucene.index.IndexNotFoundException: no segments* file found in org.apache.lucene.store.MMapDirectory@/home/elisa/repos/mine/ZeroIrcLog/irclog-category
lockFactory=org.apache.lucene.store.NativeFSLockFactory@373983f: files: [write.lock, _0.si,
_0.fnm, _0.fdt, _0_Lucene41_0.tim, _0_Lucene41_0.pos, _0.fdx, _0_Lucene41_0.doc, _0_Lucene41_0.tip]
> 	at org.apache.lucene.index.SegmentInfos$FindSegmentsFile.run(SegmentInfos.java:741)
~[lucene-core-4.2.0.jar:4.2.0 1453694 - rmuir - 2013-03-06 22:25:29]
> 	at org.apache.lucene.index.StandardDirectoryReader.open(StandardDirectoryReader.java:52)
~[lucene-core-4.2.0.jar:4.2.0 1453694 - rmuir - 2013-03-06 22:25:29]
> 	at org.apache.lucene.index.DirectoryReader.open(DirectoryReader.java:65) ~[lucene-core-4.2.0.jar:4.2.0
1453694 - rmuir - 2013-03-06 22:25:29]
> 	at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader.openIndexReader(DirectoryTaxonomyReader.java:218)
~[lucene-facet-4.2.0.jar:4.2.0 1453694 - rmuir - 2013-03-06 22:26:53]
> 	at org.apache.lucene.facet.taxonomy.directory.DirectoryTaxonomyReader.<init>(DirectoryTaxonomyReader.java:99)
~[lucene-facet-4.2.0.jar:4.2.0 1453694 - rmuir - 2013-03-06 22:26:53]
> 	at org.zeroirclog.LuceneLoggerWorker.<init>(LuceneLoggerWorker.java:141) ~[na:na]

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org


Mime
View raw message