On Fri, 15 Feb 2008 16:31:07 +0200, Michael McCandless
<
lucene@...> wrote:
>
> OK I found one case that can cause the assert to trip incorrectly.
>
> Are you using empty string field names?
Not. May be empty content of the field.
I have another question.
I see you use asserts in code 2.3.0 instead of Exceptions. Why it's not
very informative?
>
> I'll open a Jira issue & fix it on the 2.3 branch (so this is fixed in
> 2.3.1).
>
> Thanks for reporting this!
>
> Mike
>
> Sergey Kabashnyuk wrote:
>
>> stack trace
>> java.lang.AssertionError
>> at org.apache.lucene.index.TermInfosWriter.add
>> (TermInfosWriter.java:143)
>> at org.apache.lucene.index.DocumentsWriter.appendPostings
>> (DocumentsWriter.java:2290)
>> at org.apache.lucene.index.DocumentsWriter.writeSegment
>> (DocumentsWriter.java:1985)
>> at org.apache.lucene.index.DocumentsWriter.flush
>> (DocumentsWriter.java:539)
>> at org.apache.lucene.index.IndexWriter.doFlush
>> (IndexWriter.java:2497)
>> at org.apache.lucene.index.IndexWriter.flush
>> (IndexWriter.java:2397)
>> at org.apache.lucene.index.IndexWriter.closeInternal
>> (IndexWriter.java:1204)
>> at org.apache.lucene.index.IndexWriter.close
>> (IndexWriter.java:1178)
>> at org.apache.lucene.index.IndexWriter.close
>> (IndexWriter.java:1153)
>>
>> Where I can find CheckIndex.tool ?
>>
>> Sergey Kabashnyuk
>>
>>>
>>> Can you provide the full stack trace, and any details of what you were
>>> doing when you tripped that assert?
>>>
>>> Another thing to try is to run the org.apache.lucene.index.CheckIndex
>>> tool (new in 2.3) to check your 2.2 index. It's possible your 2.2
>>> index has some undetected corruption which this new assert is
>>> detecting.
>>>
>>> Mike
>>>
>>> Sergey Kabashnyuk wrote:
>>>
>>>> Hi
>>>> I want to update from lucene 2.2.0 to 2.3.0
>>>> but I have assert it TermInfosWriter line 143.
>>>>
>>>> What is it mean
>>>> assert compareToLastTerm(fieldNumber, termText, termTextStart,
>>>> termTextLength) < 0 || (isIndex && termTextLength == 0 &&
>>>> lastTermTextLength == 0);
>>>>
>>>> Can you help me?
>>>>
>>>> Sergey Kabashnyuk
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail:
java-user-unsubscribe@...
>>>> For additional commands, e-mail:
java-user-help@...
>>>>
>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail:
java-user-unsubscribe@...
>>> For additional commands, e-mail:
java-user-help@...
>>>
>>
>>
>>
>> --Отправлено M2, революционной почтовой программой Opera:
>>
http://www.opera.com/mail/>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail:
java-user-unsubscribe@...
>> For additional commands, e-mail:
java-user-help@...
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail:
java-user-unsubscribe@...
> For additional commands, e-mail:
java-user-help@...
>
--
Отправлено M2, революционной почтовой программой Opera:
http://www.opera.com/mail/---------------------------------------------------------------------
To unsubscribe, e-mail:
java-user-unsubscribe@...
For additional commands, e-mail:
java-user-help@...