lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Steve Rowe <sar...@gmail.com>
Subject Re: A flush exception in lucene 4.10.0
Date Thu, 09 Mar 2017 14:44:32 GMT
Maybe <https://issues.apache.org/jira/browse/LUCENE-5116> (though it was committed in
Lucene 4.5)?  Robert Muir pointed to this issue as fixing <https://issues.apache.org/jira/browse/SOLR-5144>,
which contains a similar stack track to yours. 

--
Steve
www.lucidworks.com

> On Mar 9, 2017, at 6:02 AM, Michael McCandless <lucene@mikemccandless.com> wrote:
> 
> This seems likely to be a Lucene bug, and it seems vaguely familiar.  I
> tried to find the issue / commit that may have fixed it, but so far failed.
> 
> But 4.10.0 is truly ancient; you should at least try upgrading to 4.10.4?
> 
> Mike McCandless
> 
> http://blog.mikemccandless.com
> 
> On Wed, Mar 8, 2017 at 6:15 AM, Yonghui Zhao <zhaoyonghui@gmail.com> wrote:
> 
>> Seems it is related to an empty segment, all docs in this segment are
>> deleted before commit.
>> Any one can confirm it? Maybe I need upgrade my lucene version.
>> 
>> 
>> 2017-03-03 10:19 GMT+08:00 Yonghui Zhao <zhaoyonghui@gmail.com>:
>> 
>>> Hi all,
>>> 
>>> Anyone see this exception before? Is it a lucene bug or something wrong
>>> in my code?
>>> 
>>> 
>>> Exception in thread "Thread-14" java.lang.IllegalArgumentException:
>>> maxValue must be non-negative (got: -1)
>>>        at org.apache.lucene.util.packed.PackedInts.bitsRequired(
>>> PackedInts.java:1141)
>>>        at org.apache.lucene.codecs.lucene41.ForUtil.bitsRequired(
>>> ForUtil.java:253)
>>>        at org.apache.lucene.codecs.lucene41.ForUtil.writeBlock(
>>> ForUtil.java:174)
>>>        at org.apache.lucene.codecs.lucene41.Lucene41PostingsWriter.
>>> addPosition(Lucene41PostingsWriter.java:377)
>>>        at org.apache.lucene.index.FreqProxTermsWriterPerField.flush(
>>> FreqProxTermsWriterPerField.java:486)
>>>        at org.apache.lucene.index.FreqProxTermsWriter.flush(
>>> FreqProxTermsWriter.java:80)
>>>        at org.apache.lucene.index.DefaultIndexingChain.flush(
>>> DefaultIndexingChain.java:114)
>>>        at org.apache.lucene.index.DocumentsWriterPerThread.flush(
>>> DocumentsWriterPerThread.java:441)
>>>        at org.apache.lucene.index.DocumentsWriter.doFlush(
>>> DocumentsWriter.java:510)
>>>        at org.apache.lucene.index.DocumentsWriter.flushAllThreads(
>>> DocumentsWriter.java:621)
>>>        at org.apache.lucene.index.IndexWriter.getReader(
>>> IndexWriter.java:414)
>>>        at org.apache.lucene.index.StandardDirectoryReader.
>>> doOpenFromWriter(StandardDirectoryReader.java:292)
>>>        at org.apache.lucene.index.StandardDirectoryReader.
>>> doOpenIfChanged(StandardDirectoryReader.java:267)
>>>        at org.apache.lucene.index.StandardDirectoryReader.
>>> doOpenIfChanged(StandardDirectoryReader.java:257)
>>>        at org.apache.lucene.index.DirectoryReader.openIfChanged(
>>> DirectoryReader.java:171)
>>> 
>> 


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


Mime
View raw message