lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "zhanlijun (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (LUCENE-6037) PendingTerm cannot be cast to PendingBlock
Date Sat, 01 Nov 2014 04:40:34 GMT

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

zhanlijun commented on LUCENE-6037:
-----------------------------------


I have customized the lucene-spatial module, and there is no error when I use only one thread
to operator IndexWriter.addDocuments.

java environment´╝Ü
java version "1.7.0_21"
Java(TM) SE Runtime Environment (build 1.7.0_21-b11)
Java HotSpot(TM) 64-Bit Server VM (build 23.21-b01, mixed mode)

OS environment´╝Ü
Linux version 2.6.32-431.20.3.el6.mt20140703.x86_64  (gcc version 4.4.7 20120313 (Red Hat
4.4.7-4) (GCC) ) #1 SMP

> 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
>             Fix For: 4.3.1
>
>
> 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
(v6.3.4#6332)

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


Mime
View raw message