You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Michael McCandless (JIRA)" <ji...@apache.org> on 2019/06/03 13:40:00 UTC
[jira] [Created] (LUCENE-8822) UnsupportedOperationException:
unused: not a comparsion-based sort during IndexWriter flush
Michael McCandless created LUCENE-8822:
------------------------------------------
Summary: UnsupportedOperationException: unused: not a comparsion-based sort during IndexWriter flush
Key: LUCENE-8822
URL: https://issues.apache.org/jira/browse/LUCENE-8822
Project: Lucene - Core
Issue Type: Bug
Affects Versions: 7.6
Reporter: Michael McCandless
We hit this very strange exception in production 7.x snapshot (near 7.6), OpenJDK 11:
{noformat}
Caused by: java.lang.UnsupportedOperationException: unused: not a comparison-based sort
at org.apache.lucene.util.MSBRadixSorter.compare(MSBRadixSorter.java:115)
at org.apache.lucene.util.Sorter.siftDown(Sorter.java:235)
at org.apache.lucene.util.Sorter.heapify(Sorter.java:228)
at org.apache.lucene.util.MSBRadixSorter.computeCommonPrefixLengthAndBuildHistogram(MSBRadixSorter.java:209)
at org.apache.lucene.util.MSBRadixSorter.radixSort(MSBRadixSorter.java:148)
at org.apache.lucene.util.MSBRadixSorter.radixSort(MSBRadixSorter.java:155)
at org.apache.lucene.util.MSBRadixSorter.sort(MSBRadixSorter.java:128)
at org.apache.lucene.util.MSBRadixSorter.sort(MSBRadixSorter.java:121)
at org.apache.lucene.util.bkd.MutablePointsReaderUtils.sort(MutablePointsReaderUtils.java:90)
at org.apache.lucene.util.bkd.BKDWriter.writeField1Dim(BKDWriter.java:497)
at org.apache.lucene.util.bkd.BKDWriter.writeField(BKDWriter.java:427)
at org.apache.lucene.codecs.lucene60.Lucene60PointsWriter.writeField(Lucene60PointsWriter.java:105)
at org.apache.lucene.index.PointValuesWriter.flush(PointValuesWriter.java:183)
at org.apache.lucene.index.DefaultIndexingChain.writePoints(DefaultIndexingChain.java:206)
at org.apache.lucene.index.DefaultIndexingChain.flush(DefaultIndexingChain.java:141)
at org.apache.lucene.index.DocumentsWriterPerThread.flush(DocumentsWriterPerThread.java:470)
at org.apache.lucene.index.DocumentsWriter.doFlush(DocumentsWriter.java:554)
at org.apache.lucene.index.DocumentsWriter.flushOneDWPT(DocumentsWriter.java:257)
at org.apache.lucene.index.IndexWriter.flushNextBuffer(IndexWriter.java:3157)
at com.amazon.lucene.index.Indexer.lambda$commit$0(Indexer.java:1129){noformat}
The exception makes no sense to me: when I look at {{MSBRadixSorter.computeCommonPrefixLengthAndBuildHistogram}} at that line it does NOT invoke {{Sorter.heapify}} so I'm mystified. Maybe this is a JVM bug ...
--
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