[
https://issues.apache.org/jira/browse/LUCENE-4886?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
crocket updated LUCENE-4886:
----------------------------
Description:
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]
was:
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 DirectoryTaxonomyRriter(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]
> "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: [email protected]
For additional commands, e-mail: [email protected]