[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=14191585#comment-14191585 ] Michael McCandless commented on LUCENE-6037: Hmm, not good. Can you provide some details about how you hit this? Or maybe a small test case showing it? > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14191617#comment-14191617 ] zhanlijun commented on LUCENE-6037: --- I have multiple threads to operator IndexWriter.addDocuments(),and it very hard to reproduce the error after it run many hours > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14192362#comment-14192362 ] Michael McCandless commented on LUCENE-6037: Which JVM/OS are you using? Any customizations to Lucene, its default settings, codecs, etc.? > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14193159#comment-14193159 ] David Smiley commented on LUCENE-6037: -- Although the lucene-spatial module changes are likely unrelated to the bug here, could you please summarize what sorts of customizations you did? > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14193740#comment-14193740 ] zhanlijun commented on LUCENE-6037: --- Lucene-spatial module changes are unrelated to the bug, because the bug also happens when I use the native lucene-spatial module. lucene-spatial module is widely used in mobile internet applications of china. I have an application scenario is to calculate the distance between the user and all POIs in the city. However, when the number of POIs in one city more than 10, the distance calculation of lucene becomes very slow (more than 10ms). Lucene use spatial4j HaversineRAD to calculate the distance, and I have do a test on my computer (2.9GHz Intel Core i7, 8GB mem) POI num | time 5w | 7ms 10w | 14ms 100w| 144ms I did some simplified the distance calculation formula. This simplification greatly improve the computational efficiency under the premise of maintaining the use of precision. Here is the result of the test. test point pair | disSimplify(meter) | distHaversineRAD(meter)| diff(meter) (39.941, 116.45)(39.94, 116.451) | 140.024276920| 140.02851671981400 | 0.0 (39.96 116.45)(39.94, 116.40)| 4804.113098854450| 4804.421153907680 | 0.3 (39.96, 116.45)(39.94, 117.30) | 72438.90919479560| 72444.54071519510 | 5.6 (39.26, 115.25)(41.04, 117.30) | 263516.676171262 | 263508.55921886700 | 8.1 POI num | time 5w | 0.1 10w | 0.3 100w| 4 > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14193742#comment-14193742 ] zhanlijun commented on LUCENE-6037: --- org.apache.lucene.codecs.BlockTreeTermsWriter$TermsWriter.finish(BlockTreeTermsWriter.java:1014). The code is "final PendingBlock root = (PendingBlock) pending.get(0);" please tell me in which cases pending.get (0) is PendingTerm type? > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14194130#comment-14194130 ] zhanlijun commented on LUCENE-6037: --- I used multiple threads to add a single document (static variable), and it would cause this error. After I corrected, the error would no longer be reappeared. > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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=14195127#comment-14195127 ] Michael McCandless commented on LUCENE-6037: Hmm are you sure this was just a multi-threaded issue? I don't see how [illegally] sharing a single Document across threads would lead to this exception. > 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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org
[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-unsubscr...@lucene.apache.org For additional commands, e-mail: dev-h...@lucene.apache.org