You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Khindikaynen Aleksey (JIRA)" <ji...@apache.org> on 2018/06/19 09:29:00 UTC

[jira] [Commented] (LUCENE-6037) PendingTerm cannot be cast to PendingBlock

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

Khindikaynen Aleksey commented on LUCENE-6037:
----------------------------------------------

I'm able to reproduce this issue quite stable with Lucene .NET 4.8 beta 5. I'm not sharing a single Document instance across threads - just adding documents to the index in multiple threads. As far as i know, Lucene .NET is a line-by-line port of Java Lucene version. Could it help if I share a sample illustrating this issue with Lucene .NET?

> PendingTerm cannot be cast to PendingBlock
> ------------------------------------------
>
>                 Key: LUCENE-6037
>                 URL: https://issues.apache.org/jira/browse/LUCENE-6037
>             Project: Lucene - Core
>          Issue Type: Bug
>          Components: core/codecs
>    Affects Versions: 4.3.1
>         Environment: ubuntu 64bit
>            Reporter: zhanlijun
>            Priority: Critical
>         Attachments: 屏幕快照 2014-11-04 上午9.48.17.png
>
>
> the error as follows:
> java.lang.ClassCastException: org.apache.lucene.codecs.BlockTreeTermsWriter$PendingTerm cannot be cast to org.apache.lucene.codecs.BlockTreeTermsWriter$PendingBlock
>         at org.apache.lucene.codecs.BlockTreeTermsWriter$TermsWriter.finish(BlockTreeTermsWriter.java:1014)
>         at org.apache.lucene.index.FreqProxTermsWriterPerField.flush(FreqProxTermsWriterPerField.java:553)
>         at org.apache.lucene.index.FreqProxTermsWriter.flush(FreqProxTermsWriter.java:85)
>         at org.apache.lucene.index.TermsHash.flush(TermsHash.java:116)
>         at org.apache.lucene.index.DocInverter.flush(DocInverter.java:53)
>         at org.apache.lucene.index.DocFieldProcessor.flush(DocFieldProcessor.java:81)
>         at org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:493)
>         at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:480)
>         at org.apache.lucene.index.DocumentsWriter.postUpdate(DocumentsWriter.java:378)
>         at org.apache.lucene.index.DocumentsWriter.updateDocuments(DocumentsWriter.java:413)
>         at org.apache.lucene.index.IndexWriter.updateDocuments(IndexWriter.java:1283)
>         at org.apache.lucene.index.IndexWriter.addDocuments(IndexWriter.java:1243)
>         at org.apache.lucene.index.IndexWriter.addDocuments(IndexWriter.java:1228)



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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