You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Robert Newson (JIRA)" <ji...@apache.org> on 2008/06/12 15:46:44 UTC

[jira] Created: (LUCENE-1305) Assertion error in TermsInfoWriter

Assertion error in TermsInfoWriter
----------------------------------

                 Key: LUCENE-1305
                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
             Project: Lucene - Java
          Issue Type: Bug
          Components: Store
    Affects Versions: 2.3.2
            Reporter: Robert Newson



The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).


indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Resolved: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Robert Newson resolved LUCENE-1305.
-----------------------------------

    Resolution: Invalid


Had two versions of Lucene on my classpath (2.2.0 and 2.3.2), this doesn't work, nor should it.

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604558#action_12604558 ] 

Robert Newson commented on LUCENE-1305:
---------------------------------------


Ok, new theory. It seems I have both 2.2.0 and 2.3.2 on my classpath. Maven 2, I curse you.

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604614#action_12604614 ] 

Michael McCandless commented on LUCENE-1305:
--------------------------------------------

OK, that's odd, but since it's stopped the exception, that's good!

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604551#action_12604551 ] 

Michael McCandless commented on LUCENE-1305:
--------------------------------------------

Can you post the test case that hits this?

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604562#action_12604562 ] 

Robert Newson commented on LUCENE-1305:
---------------------------------------


Works just fine with just 2.3.2 on the classpath, false alarm. :)


> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604554#action_12604554 ] 

Michael McCandless commented on LUCENE-1305:
--------------------------------------------

bq.The test passes on my local machine but fails on machine in our lab.

Just to clarify here: are you saying that using 2.3.2, and the same OS & JRE, that the test fails on the machine in your lab but passes on your local machine?

Which exact version of JDK 6 are you using?

What are the differences between these two machines?

When it fails on the machine in your lab, is it always at the same point (after same number of added docs)?  Or is there some randomness?

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604556#action_12604556 ] 

Robert Newson commented on LUCENE-1305:
---------------------------------------


The test case indexes the Enron corpus and exercises our applications Document creation stuff, which is quite a few classes, most of which I can't post here. 

I'm a long term Lucene user and I've never seen this kind of failure before, so I'm expecting it to be an environmental issue or some ugly combination of pieces. I noticed that jdk6 has many hotspot bugs that affect Lucene. We've had to disable hotstop for invertDocument because it does, eventually, segfault. 

Our java version is;

java version "1.6.0_04"
Java(TM) SE Runtime Environment (build 1.6.0_04-b12)
Java HotSpot(TM) Client VM (build 10.0-b19, mixed mode, sharing)



> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Robert Newson (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604582#action_12604582 ] 

Robert Newson commented on LUCENE-1305:
---------------------------------------


Well, it passes when I have only one of the two (either of them) and not with the mixture. So, between the two versions I expect it's the ordering of classes in ClassLoader. If there's a class that exists only in one, that might be the source.

So, I think the issue is resolved when only one version of Lucene exists. With the mixture it failed at document 7, without I can index all 520,631 documents.

My experience with Sun is that the bug parade is a nice place to visit to find out why the bug you've just encountered has been known, but not fixed, for 3 years. 

I'll ask the developer in question whether we can isolate the segfault, but it crops up with very low probability when we do mass indexing. 

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Commented: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12604576#action_12604576 ] 

Michael McCandless commented on LUCENE-1305:
--------------------------------------------

bq. Had two versions of Lucene on my classpath (2.2.0 and 2.3.2), this doesn't work, nor should it.

Hmm, I would have expected that this would just mean you get one or the other (ie 2.2.0 or 2.3.2), but, not the above exception.  Are you really sure the exception is gone?

bq. I noticed that jdk6 has many hotspot bugs that affect Lucene

Hmm, I had only known about this one (from LUCENE-1282):

    http://bugs.sun.com/bugdatabase/addVote.do?bug_id=6707044

Feel free to go vote for it!

Your case (a segfault) sounds like it could be something different.  If you can work that down to an example, or provide some details, maybe we can open a different bug with sun.

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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


[jira] Assigned: (LUCENE-1305) Assertion error in TermsInfoWriter

Posted by "Michael McCandless (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/LUCENE-1305?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Michael McCandless reassigned LUCENE-1305:
------------------------------------------

    Assignee: Michael McCandless

> Assertion error in TermsInfoWriter
> ----------------------------------
>
>                 Key: LUCENE-1305
>                 URL: https://issues.apache.org/jira/browse/LUCENE-1305
>             Project: Lucene - Java
>          Issue Type: Bug
>          Components: Store
>    Affects Versions: 2.3.2
>            Reporter: Robert Newson
>            Assignee: Michael McCandless
>
> The test passes on my local machine but fails on machine in our lab. Both are using JDK 6 and Ubuntu 8.04. Another interesting difference is that the directory that my input files are read from is an NFS share, but the index is written to a local disk. the indexing process is single-threaded. This test completes successfully with lucene 2.2.0 but fails with 2.3.2 (pulled from the maven2 repository).
> indexEnron(bob.IndexingTest)  Time elapsed: 41.285 sec  <<< FAILURE!
> java.lang.AssertionError: Terms are out of order: field=B_contentid (number 7) lastField=B_contentid (number 7) text=SHA_256  lastText=SHA_256 
> 	at org.apache.lucene.index.TermInfosWriter.add(TermInfosWriter.java:154)
> 	at org.apache.lucene.index.DocumentsWriter.appendPostings(DocumentsWriter.java:2320)
> 	at org.apache.lucene.index.DocumentsWriter.writeSegment(DocumentsWriter.java:2015)
> 	at org.apache.lucene.index.DocumentsWriter.flush(DocumentsWriter.java:552)
> 	at org.apache.lucene.index.IndexWriter.doFlush(IndexWriter.java:2623)
> 	at org.apache.lucene.index.IndexWriter.flush(IndexWriter.java:2523)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1484)
> 	at org.apache.lucene.index.IndexWriter.addDocument(IndexWriter.java:1442)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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